https://github.com/nhomble/toy-gorouter
dumb router written in go for practice
https://github.com/nhomble/toy-gorouter
Last synced: 6 days ago
JSON representation
dumb router written in go for practice
- Host: GitHub
- URL: https://github.com/nhomble/toy-gorouter
- Owner: nhomble
- License: mit
- Created: 2020-06-08T05:14:41.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-06-09T01:49:41.000Z (about 5 years ago)
- Last Synced: 2023-05-17T23:45:41.017Z (about 2 years ago)
- Language: Go
- Size: 11.7 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
toy gorouter
============
Does simple routing across statically configured backends. Async checks healthiness of backends and round robins to
different healthy resources.# usage
```bash
$ cd gorouter; go build
$ ./gorouter -config your-configuration.yml
```And if you want a simple backend to try it out
```bash
$ cd logserver; go build
$ ./logserver -port
```There is sample configuration in [basic.yml](resources/basic.yml)
# todo
- configure base uris
- dynamically refresh configurations
- auth# credit
inspired by kasvith