An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

        

toy gorouter
============
![Go Build & Test](https://github.com/nhomble/toy-gorouter/workflows/Go%20Build%20&%20Test/badge.svg)

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