Versions in this module Expand all Collapse all v3 v3.4.15 Feb 24, 2021 Changes in this version + type Endpoint struct + Addr string + Metadata interface{} + type Key2EndpointMap map[string]Endpoint + type Manager interface + AddEndpoint func(ctx context.Context, key string, endpoint Endpoint, opts ...clientv3.OpOption) error + DeleteEndpoint func(ctx context.Context, key string, opts ...clientv3.OpOption) error + List func(ctx context.Context) (Key2EndpointMap, error) + NewWatchChannel func(ctx context.Context) (WatchChannel, error) + Update func(ctx context.Context, updates []*UpdateWithOpts) error + func NewManager(client *clientv3.Client, target string) (Manager, error) + type Operation uint8 + const Add + const Delete + type Update struct + Endpoint Endpoint + Key string + Op Operation + type UpdateWithOpts struct + Opts []clientv3.OpOption + func NewAddUpdateOpts(key string, endpoint Endpoint, opts ...clientv3.OpOption) *UpdateWithOpts + func NewDeleteUpdateOpts(key string, opts ...clientv3.OpOption) *UpdateWithOpts + type WatchChannel <-chan []*Update