KO
|
EN
gitlite — search
Search
#javascript
#python
#hacktoberfest
#react
#ai
#typescript
#llm
#go
#golang
#android
#machine-learning
#rust
#deep-learning
#linux
fgb
★ 10
Open GitHub ↗
fgb
Download README (.md)
Explore Similar Repositories
action-get-semver
:
Outputs the current/next major, minor, and patch version based on the given semver version.
mail2rm
:
Mail PDF documents to you reMarkable notebook
video-processing-with-symbl
:
Video processing app with NextJS and Symbl AI.
proj19-process-memory-tracker
:
实时统计进程内存使用及检测内存泄漏。
FalconDB
:
A simple in-memory key-value database.
// repository documentation
Was this content helpful?
★ 0
(0 ratings)
Select Rating:
★
★
★
★
★
Submit Feedback
Recent Feedback
×
Download README
Do you want to download the
README.md
file for
fgb
?
Download (.md)
### fgb is a rpc framework base on rabbitmq and spring boot amqp > fgb mains front ground bridge, using this you can rpc anything with out limited auth things like **oauth2** #### @FgbClient ``` package com.gaad.fgb.demo.demo.fgb; import com.gaad.rabbitmq.fgb.annotation.FgbClient; import com.gaad.rabbitmq.fgb.annotation.FgbClientMethod; import net.unsun.infrastructure.common.kit.ResultBean; import java.util.List; /** * IndexFgbClient */ @FgbClient("demo.indexFgb") public interface IndexFgbClient { @FgbClientMethod ResultBean<List<String>> testIndex(); } ``` #### @FgbServer ``` package com.gaad.fgb.demo.demo.fgb; import com.gaad.rabbitmq.fgb.annotation.FgbServer; import com.gaad.rabbitmq.fgb.annotation.FgbServerMethod; import net.unsun.infrastructure.common.kit.ResultBean; import java.util.ArrayList; import java.util.List; /** * IndexFgbServer */ @FgbServer("demo.indexFgb") public class IndexFgbServer { @FgbServerMethod public ResultBean<List<String>> testIndex() { ResultBean<List<String>> result = new ResultBean<>(); List<String> list = new ArrayList<>(); list.add("i am indexFgbServer"); result.setData(list); return result; } } ``` #### Controller( in controller you can @Autowired the interface of @FgbClient ) ``` package com.gaad.fgb.demo.demo.controller; import com.gaad.fgb.demo.demo.fgb.IndexFgbClient; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Value; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; import net.unsun.infrastructure.common.kit.ResultBean; import java.util.List; /** * IndexController */ @RestController @RequestMapping("/") public class IndexController { @Autowired IndexFgbClient indexFgbClient; @GetMapping("/index") public ResultBean<List<String>> index() { return indexFgbClient.testIndex(); } } ``` > top is the simple demo for fgb