Versions in this module Expand all Collapse all v1 v1.0.0 Jul 10, 2024 Changes in this version + type Config struct + Addrs []string + Auth string + ElectPath string + Scheme string + type Zookeeper struct + func New(id string, cfg *Config) (*Zookeeper, error) + func (e *Zookeeper) Close() error + func (e *Zookeeper) Create(ctx context.Context, key string, value []byte, flags int32) error + func (e *Zookeeper) Delete(ctx context.Context, key string) error + func (e *Zookeeper) Exists(ctx context.Context, key string) (bool, error) + func (e *Zookeeper) Get(ctx context.Context, key string) ([]byte, error) + func (e *Zookeeper) ID() string + func (e *Zookeeper) IsReady(ctx context.Context) bool + func (e *Zookeeper) Leader() string + func (e *Zookeeper) LeaderChange() <-chan bool + func (e *Zookeeper) List(ctx context.Context, prefix string) ([]engine.Entry, error) + func (e *Zookeeper) Set(ctx context.Context, key string, value []byte) error + func (e *Zookeeper) SetleaderID(newLeaderID string) v1.0.0-rc1 Jul 10, 2024