Documentation ¶
Index ¶
- type Etcd
- func (e *Etcd) Create(key, value string) error
- func (e *Etcd) CreateWithLease(key, value string, ttl int64) (int64, error)
- func (e *Etcd) Delete(key string) error
- func (e *Etcd) Read(key string) (string, error)
- func (e *Etcd) ReadAll(key string) (map[string]string, error)
- func (e *Etcd) RefreshLease(id int64) error
- func (e *Etcd) Update(key, value string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Etcd ¶
type Etcd struct {
// contains filtered or unexported fields
}
func (*Etcd) Create ¶
Inserts a new key/value pair. This will not overwrite an already existing key.
func (*Etcd) CreateWithLease ¶
Creates a key with a specified TTL. This will not overwrite an already existing key.
Click to show internal directories.
Click to hide internal directories.