Documentation ¶ Index ¶ func ExecHttp(url, key string) ([]byte, error) type Client func New(machines []string) (*Client, error) func (c *Client) Get(key string) ([]byte, error) func (c *Client) List(key string) (backend.KVPairs, error) func (c *Client) Set(key string, value []byte) error func (c *Client) Watch(key string, stop chan bool) <-chan *backend.Response Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func ExecHttp ¶ added in v1.1.6 func ExecHttp(url, key string) ([]byte, error) Types ¶ type Client ¶ type Client struct { Hosts []string } func New ¶ func New(machines []string) (*Client, error) func (*Client) Get ¶ func (c *Client) Get(key string) ([]byte, error) func (*Client) List ¶ func (c *Client) List(key string) (backend.KVPairs, error) 不需要list func (*Client) Set ¶ func (c *Client) Set(key string, value []byte) error 不需要set func (*Client) Watch ¶ func (c *Client) Watch(key string, stop chan bool) <-chan *backend.Response Source Files ¶ View all Source files http.go Click to show internal directories. Click to hide internal directories.