Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yiplee/twirp-gateway-example
A simple twirp api gateway example
https://github.com/yiplee/twirp-gateway-example
golang rpc twirp
Last synced: 3 months ago
JSON representation
A simple twirp api gateway example
- Host: GitHub
- URL: https://github.com/yiplee/twirp-gateway-example
- Owner: yiplee
- License: mit
- Created: 2020-07-06T16:16:21.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-07-06T17:48:19.000Z (over 4 years ago)
- Last Synced: 2024-06-20T15:56:49.041Z (8 months ago)
- Topics: golang, rpc, twirp
- Language: Go
- Homepage: https://blog.yiplee.com/posts/twirp-rpc-gateway/
- Size: 22.5 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# twirp-gateway-example
A simple twirp api gateway example| package | description |
| -------------------- | ---------------------------- |
| core | model 以及对应 store 的定于 |
| handler | request handler 实现 |
| handler/codes | 自定义错误码 |
| handler/hc | healthy check handler |
| handler/render | response wrapper 实现 |
| handler/reversetwirp | ReverseTwirp 实现 |
| handler/rpc/book | rpc book service 实现 |
| handler/rpc/views | core.Book -> proto.Book |
| proto | proto 定义以及自动生成的代码 |
| store/book | core.BookStore 实现 |