You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
René Jochum
61987fdc7a
Signed-off-by: René Jochum <rene@jochum.dev> |
2 years ago | |
---|---|---|
cmd/microrouterd | 2 years ago | |
config | 2 years ago | |
docker | 2 years ago | |
handler | 2 years ago | |
proto | 2 years ago | |
util | 2 years ago | |
.gitignore | 2 years ago | |
LICENSE.spdx | 2 years ago | |
README.md | 2 years ago | |
Taskfile.yml | 2 years ago | |
go.mod | 2 years ago | |
go.sum | 2 years ago | |
handler.go | 2 years ago | |
route.go | 2 years ago |
README.md
router
A dynamic router (API Gatway) for go-micro.
It looks for services that host "proto/routerclientpb/routerclientpb.RouterClientService" and ask's them for routes/endpoints, then it registers that endpoints via a proxy method within gin.
Caveats
- gin doesn't allow to delete routes, so if you want to delete a route you have to restart go-micro/router.
Todo
- Add (more) examples.
- Add support for Streams / WebSockets.
- Add support for debug.
- Maybe add optional support for auth.
Examples
For now you have to look at internalService or the author's FOSS project microlobby.
Build podman/docker image
Prerequesits
- podman
- Task
Build
task
Remove everything except the resulting podman images created by task
task rm
Authors
- René Jochum - rene@jochum.dev
License
Its dual licensed:
- Apache-2.0
- GPL-2.0-or-later