A ready-to-use and simple go-micro router
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.
 
 
Go to file
René Jochum 61987fdc7a Add generated .pb.go and pb.micro.go files for clients
Signed-off-by: René Jochum <rene@jochum.dev>
2 years ago
cmd/microrouterd Add versioning, serve routes over an internal service 2 years ago
config Add versioning, serve routes over an internal service 2 years ago
docker Add versioning, serve routes over an internal service 2 years ago
handler Add versioning, serve routes over an internal service 2 years ago
proto Add generated .pb.go and pb.micro.go files for clients 2 years ago
util Add plugins 2 years ago
.gitignore Add generated .pb.go and pb.micro.go files for clients 2 years ago
LICENSE.spdx Initial commit 2 years ago
README.md Small fixes in the README 2 years ago
Taskfile.yml Fix task release 2 years ago
go.mod Remove log lines, add transport plugins 2 years ago
go.sum Remove log lines, add transport plugins 2 years ago
handler.go Move some files 2 years ago
route.go Move some files 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

Build

task

Remove everything except the resulting podman images created by task

task rm

Authors

License

Its dual licensed:

  • Apache-2.0
  • GPL-2.0-or-later