Documentation ¶
Index ¶
- type Config
- type KV
- func (k *KV) Del(ctx context.Context, key string) error
- func (k *KV) Get(ctx context.Context, key string) ([]byte, error)
- func (k *KV) GetPrefix(ctx context.Context, prefix string) (map[string][]byte, error)
- func (k *KV) Put(ctx context.Context, key string, value string) error
- func (k *KV) Start(ctx context.Context) error
- func (k *KV) Stop(ctx context.Context) error
- func (k *KV) Watch(ctx context.Context, prefix string, withPrevVal bool) <-chan kvtypes.WatchResp
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶ added in v0.58.0
type Config struct { Endpoints []string `fig:"endpoints"` Username string `fig:"username"` Password string `fig:"password"` DialTimeout time.Duration `fig:"dial_timeout" default:"20s"` DialKeepAliveTime time.Duration `fig:"dial_keep_alive_time" default:"30s"` DialKeepAliveTimeout time.Duration `fig:"dial_keep_alive_timeout" default:"10s"` KeepAliveTime time.Duration `fig:"keep_alive" default:"10s"` Timeout time.Duration `fig:"keep_alive" default:"20m"` }
Config contains etcd configuration parameters.
type KV ¶
type KV struct {
// contains filtered or unexported fields
}
KV represents an etcd key-value store implementation.
Click to show internal directories.
Click to hide internal directories.