Delete unused

This commit is contained in:
Asim Aslam 2019-01-18 17:31:38 +00:00 committed by Vasiliy Tolstov
parent 544b4d3757
commit b06c7aa81f
2 changed files with 0 additions and 35 deletions

View File

@ -1,23 +0,0 @@
# Gossip Registry
Gossip is a zero dependency registry which uses hashicorp/memberlist to broadcast registry information via the SWIM protocol.
## Usage
Start with the registry flag or env var
```bash
MICRO_REGISTRY=gossip go run service.go
```
On startup you'll see something like
```bash
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
```bash
MICRO_REGISTRY_ADDRESS= 192.168.1.65:56390
```

View File

@ -1,12 +0,0 @@
// Package Gossip provides a gossip registry based on hashicorp/memberlist
package gossip
import (
"github.com/micro/go-micro/registry"
"github.com/micro/go-micro/registry/gossip"
)
// NewRegistry returns a new gossip registry
func NewRegistry(opts ...registry.Option) registry.Registry {
return gossip.NewRegistry(opts...)
}