Go to file
Vasiliy Tolstov 538a589650 update go-micro and micro to v2.9.1
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2021-01-29 23:24:24 +03:00
proto Update to latest go-micro and fix breaks 2021-01-29 23:24:24 +03:00
go.mod update go-micro and micro to v2.9.1 2021-01-29 23:24:24 +03:00
go.sum update go-micro and micro to v2.9.1 2021-01-29 23:24:24 +03:00
gossip_test.go gossip tests are broker in github 2021-01-29 23:24:24 +03:00
gossip.go registry: fix them all for go-micro master (#533) 2021-01-29 23:24:24 +03:00
options.go fix import path for v2 release (#457) 2021-01-29 23:24:24 +03:00
README.md Add gossip registry 2021-01-29 23:24:24 +03:00
watcher.go fix import path for v2 release (#457) 2021-01-29 23:24:24 +03:00

Gossip Registry

Gossip is a zero dependency registry which uses github.com/hashicorp/memberlist to broadcast registry information via the SWIM protocol.

Usage

Start with the registry flag or env var

MICRO_REGISTRY=gossip go run service.go

On startup you'll see something like

2018/12/06 18:17:48 Registry Listening on 192.168.1.65:56390

To join this gossip ring set the registry address using flag or env var

MICRO_REGISTRY_ADDRESS=192.168.1.65:56390