Documentation ¶
Index ¶
- Constants
- func CloseDebug()
- func OpenDebug()
- type Client
- func (c *Client) Delete(key string) (*store.Response, error)
- func (c *Client) Get(key string) ([]*store.Response, error)
- func (c *Client) GetFrom(key string, addr string) ([]*store.Response, error)
- func (c *Client) Set(key string, value string, ttl uint64) (*store.Response, error)
- func (c *Client) SetCertAndKey(cert string, key string) (bool, error)
- func (c *Client) SetCluster(machines []string) bool
- func (c *Client) SetScheme(scheme int) (bool, error)
- func (c *Client) SetTo(key string, value string, ttl uint64, addr string) (*store.Response, error)
- func (c *Client) SyncCluster() bool
- func (c *Client) TestAndSet(key string, prevValue string, value string, ttl uint64) (*store.Response, bool, error)
- func (c *Client) Watch(prefix string, sinceIndex uint64, receiver chan *store.Response, ...) (*store.Response, error)
- type Cluster
- type Config
- type EtcdError
Constants ¶
View Source
const ( HTTP = iota HTTPS )
Variables ¶
This section is empty.
Functions ¶
func CloseDebug ¶
func CloseDebug()
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) GetFrom ¶
GetTo gets the value of the key from a given machine address. If the given machine is not available it returns an error. Mainly use for testing purpose
func (*Client) SetCertAndKey ¶
func (*Client) SetCluster ¶
Try to sync from the given machine
func (*Client) SetTo ¶
SetTo sets the value of the key to a given machine address. If the given machine is not available or is not leader it returns an error Mainly use for testing purpose.
func (*Client) SyncCluster ¶
sycn cluster information using the existing machine list
func (*Client) TestAndSet ¶
Click to show internal directories.
Click to hide internal directories.