Documentation ¶
Index ¶
Constants ¶
View Source
const ( ErrorKeyNotFound = 100 ErrorNodeExist = 105 )
Variables ¶
This section is empty.
Functions ¶
func ErrIsNotFound ¶
Types ¶
type EtcdClient ¶
type EtcdClient interface { Create(key string, value string, ttl uint64) (*etcd.Response, error) CreateDir(dir string, ttl uint64) (*etcd.Response, error) CompareAndSwap(key string, value string, ttl uint64, prevValue string, prevIndex uint64) (*etcd.Response, error) Get(key string, sort, recursive bool) (*etcd.Response, error) }
func NewEtcdClient ¶
func NewEtcdClient(machines []string, ti *TLSInfo) (EtcdClient, error)
NewClient creates a new EtcdClient
Click to show internal directories.
Click to hide internal directories.