etcd

package
v2.3.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2018 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewStore

func NewStore(addr string, isDebug bool) (storage.Store, error)

Types

type EtcdStore

type EtcdStore struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func (*EtcdStore) Get

func (store *EtcdStore) Get(key string, v interface{}) error

func (*EtcdStore) GetRaw

func (store *EtcdStore) GetRaw(key string) (string, error)

func (*EtcdStore) KeysByPrefix

func (store *EtcdStore) KeysByPrefix(prefix string) ([]string, error)

func (*EtcdStore) Remove

func (store *EtcdStore) Remove(key string) error

func (*EtcdStore) RemoveDir

func (store *EtcdStore) RemoveDir(key string) error

func (*EtcdStore) Set

func (store *EtcdStore) Set(key string, v interface{}, force ...bool) error

func (*EtcdStore) SetWithTTL

func (store *EtcdStore) SetWithTTL(key string, v interface{}, ttlSec int, force ...bool) error

func (*EtcdStore) TryRemoveDir

func (store *EtcdStore) TryRemoveDir(key string)

func (*EtcdStore) Watch

func (store *EtcdStore) Watch(key string) chan string

Jump to

Keyboard shortcuts

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