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: about 2 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 (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-07-06T17:48:19.000Z (almost 5 years ago)
- Last Synced: 2025-03-29T12:35:05.647Z (2 months ago)
- Topics: golang, rpc, twirp
- Language: Go
- Homepage: https://blog.yiplee.com/posts/twirp-rpc-gateway/
- Size: 22.5 KB
- Stars: 5
- Watchers: 1
- 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 实现 |