Documentation ¶
Index ¶
- func LoadEtcdEndpoints(endpoints string) []string
- type Etcd
- func (etc *Etcd) Del(key string, opt *etcdCli.DeleteOptions) error
- func (etc *Etcd) Get(key string, opt *etcdCli.GetOptions) ([]byte, error)
- func (etc *Etcd) GetNodes(key string, opt *etcdCli.GetOptions) (etcdCli.Nodes, error)
- func (etc *Etcd) Init() error
- func (etc *Etcd) Put(key string, buf []byte) error
- func (etc *Etcd) TryGetNodes(key string, opt *etcdCli.GetOptions, timeout time.Duration) (nodes etcdCli.Nodes, err error)
- func (etc *Etcd) TryGetRespUntil(key string, timeout time.Duration) (resp *etcdCli.Response, err error)
- func (etc *Etcd) TryGetUntil(key string, timeout time.Duration) (buf []byte, err error)
- func (etc *Etcd) Watcher(key string, opts *etcdCli.WatcherOptions) (etcdCli.Watcher, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadEtcdEndpoints ¶
Types ¶
type Etcd ¶
func (*Etcd) TryGetNodes ¶
func (*Etcd) TryGetRespUntil ¶
func (*Etcd) TryGetUntil ¶
Click to show internal directories.
Click to hide internal directories.