Versions in this module Expand all Collapse all v0 v0.4.1 Apr 2, 2020 Changes in this version + var ErrDuplication = errors.New("zookeeper: instance duplicate registration") + func Build(c *Config, id string) naming.Resolver + func Builder(c *Config) naming.Builder + type Config struct + Endpoints []string + Root string + Timeout xtime.Duration + type Resolve struct + func (r *Resolve) Close() error + func (r *Resolve) Fetch(ctx context.Context) (ins *naming.InstancesInfo, ok bool) + func (r *Resolve) Watch() <-chan struct{} + type Zookeeper struct + func New(c *Config) (zkb *Zookeeper, err error) + func (z *Zookeeper) Build(appid string, options ...naming.BuildOpt) naming.Resolver + func (z *Zookeeper) Close() error + func (z *Zookeeper) Register(ctx context.Context, ins *naming.Instance) (cancelFunc context.CancelFunc, err error) + func (z *Zookeeper) Scheme() string