Go to file
Shulhan e5be708288 all: use single uuid package
Internally, "pborman/uuid.NewUUID()" is calling "google/uuid.New()"
that return nil when there is an error [1].

Both package use the same license.

[1] https://github.com/pborman/uuid/blob/master/version1.go#L17
2021-01-29 23:24:24 +03:00
gossip_test.go Move memory to gossip since that's what it is 2021-01-29 23:24:24 +03:00
gossip.go all: use single uuid package 2021-01-29 23:24:24 +03:00
options.go switch to stdlib context 2021-01-29 23:24:24 +03:00
README.md minor gossip readme nitpick 2021-01-29 23:24:24 +03:00
watch.go watch branch 2021-01-29 23:24:24 +03:00

Gossip Registry

Gossip is a registry plugin for go-micro which uses hashicorp/memberlist to broadcast registry information via the SWIM protocol.

Usage

Import the plugin as per usual

import _ "github.com/micro/go-plugins/registry/gossip"

Start with the registry flag

go run service.go --registry=gossip

On startup you'll see something like

2016/06/19 14:05:43 Local memberlist node 127.0.0.1:45465

To join this gossip ring use --registry=gossip --registry_address 127.0.0.1:45465 when starting other nodes