MCPcopy
hub / github.com/micro/go-micro / etcdRegistry

Struct etcdRegistry

registry/etcd/etcd.go:29–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27)
28
29type etcdRegistry struct {
30 client *clientv3.Client
31 options registry.Options
32
33 sync.RWMutex
34 register map[string]uint64
35 leases map[string]clientv3.LeaseID
36 keepaliveChs map[string]<-chan *clientv3.LeaseKeepAliveResponse
37 keepaliveStop map[string]chan bool
38}
39
40func NewEtcdRegistry(opts ...registry.Option) registry.Registry {
41 e := &etcdRegistry{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected