Documentation
¶
Index ¶
- type Consul
- func (c *Consul) Delete(key string) error
- func (c *Consul) DeleteTree(prefix string) error
- func (c *Consul) Exists(key string) (bool, error)
- func (c *Consul) Get(key string) ([]byte, error)
- func (c *Consul) List(prefix string) (map[string][]byte, error)
- func (c *Consul) NewLocker(key string) kv.Locker
- func (c *Consul) NewWatcher(prefix string) kv.Watcher
- func (c *Consul) Put(key string, value []byte) error
- type Locker
- type Options
- type Watcher
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Consul ¶
type Consul struct {
// contains filtered or unexported fields
}
Consul is a client for https://consul.io/.
func (*Consul) DeleteTree ¶
DeleteTree implements the kv.KV interface.
func (*Consul) NewWatcher ¶
NewWatcher implements the kv.KV interface.
type Options ¶
type Options struct { Address string Scheme string PathPrefix string Datacenter string Token string Namespace string }
Options is Consul options.
Click to show internal directories.
Click to hide internal directories.