Documentation
¶
Index ¶
- func NewProvider(ctx context.Context, endPoints []string, username, password string) (backend.Provider, error)
- type Etcd
- func (p *Etcd) Close() error
- func (p *Etcd) Delete(key string, dir bool) error
- func (p *Etcd) Get(key string, dir bool) (backend.KVPairs, error)
- func (p *Etcd) Incr(key string) (int64, error)
- func (p *Etcd) KeepAlive(key, value string, ttl time.Duration) error
- func (p *Etcd) Set(key, value string, ttl time.Duration) error
- func (p *Etcd) Type() string
- func (p *Etcd) Watch(key string, dir bool) (backend.EventChan, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Etcd ¶
type Etcd struct {
*clientv3.Client
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.