Versions in this module Expand all Collapse all v0 v0.9.0 Apr 7, 2020 Changes in this version + var ErrorNoRecord = errors.New("no key found") + type EtcdConfig struct + Endpoints []string + type Manager interface + Close func() error + Delete func(ctx context.Context, collection string, key string) error + Exists func(ctx context.Context, collection string, key string) (bool, error) + Get func(ctx context.Context, collection string, key string) ([]byte, error) + List func(cctx context.Context, collection string, limit, page int64, newestFirst bool) ([]Result, int64, error) + Put func(ctx context.Context, collection string, key string, value []byte, ...) error + Watch func(ctx context.Context, collection string) <-chan WatchResult + WatchKey func(ctx context.Context, collection, key string) <-chan WatchResult + func NewETCDManager(ctx context.Context, config EtcdConfig) (Manager, error) + func NewETCDMockManager() (Manager, error) + func NewManager(ctx context.Context, config interface{}) (Manager, error) + type OperationType int32 + const OperationTypeDELETE + const OperationTypePUT + type Result struct + Key string + Value []byte + type WatchResult struct + Err error + Result Result + Type OperationType