etcd

package
v0.0.0-...-84d4900 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 9, 2019 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadEtcdEndpoints

func LoadEtcdEndpoints(endpoints string) []string

Types

type Etcd

type Etcd struct {
	Endpoints  []string
	SecKeyRing string
	// contains filtered or unexported fields
}

func (*Etcd) Del

func (etc *Etcd) Del(key string, opt *etcdCli.DeleteOptions) error

func (*Etcd) Get

func (etc *Etcd) Get(key string, opt *etcdCli.GetOptions) ([]byte, error)

func (*Etcd) GetNodes

func (etc *Etcd) GetNodes(key string, opt *etcdCli.GetOptions) (etcdCli.Nodes, error)

func (*Etcd) Init

func (etc *Etcd) Init() error

func (*Etcd) Put

func (etc *Etcd) Put(key string, buf []byte) error

func (*Etcd) TryGetNodes

func (etc *Etcd) TryGetNodes(key string, opt *etcdCli.GetOptions, timeout time.Duration) (nodes etcdCli.Nodes, err error)

func (*Etcd) TryGetRespUntil

func (etc *Etcd) TryGetRespUntil(key string, timeout time.Duration) (resp *etcdCli.Response, err error)

func (*Etcd) TryGetUntil

func (etc *Etcd) TryGetUntil(key string, timeout time.Duration) (buf []byte, err error)

func (*Etcd) Watcher

func (etc *Etcd) Watcher(key string, opts *etcdCli.WatcherOptions) (etcdCli.Watcher, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL