Versions in this module Expand all Collapse all v0 v0.13.1 Oct 16, 2014 v0.13.0 Oct 9, 2014 Changes in this version + const ErrorEventIndexCleared + const ErrorKeyNotFound + const ErrorNodeExist + func NewClient(endpoints []string, transport http.Transport, actionTimeout time.Duration) (*client, error) + func ReadTLSConfigFiles(cafile, certfile, keyfile string) (cfg *tls.Config, err error) + type Action interface + HTTPRequest func() (*http.Request, error) + type Client interface + Do func(Action) (*Result, error) + Wait func(Action, <-chan struct{}) (*Result, error) + type Create struct + Key string + TTL time.Duration + Value string + func (c *Create) HTTPRequest() (*http.Request, error) + func (c *Create) String() string + type Delete struct + Key string + PreviousIndex uint64 + PreviousValue string + Recursive bool + func (del *Delete) HTTPRequest() (*http.Request, error) + func (del *Delete) String() string + type Error struct + Cause string + ErrorCode int + Index uint64 + Message string + func (e Error) Error() string + type Get struct + Key string + Recursive bool + Sorted bool + func (g *Get) HTTPRequest() (*http.Request, error) + func (g *Get) String() string + type Node struct + CreatedIndex uint64 + Key string + ModifiedIndex uint64 + Nodes Nodes + Value string + func (n *Node) String() string + type Nodes []Node + type Result struct + Action string + Node *Node + PrevNode *Node + Raw []byte + func (r *Result) String() string + type Set struct + Key string + PreviousIndex uint64 + TTL time.Duration + Value string + func (s *Set) HTTPRequest() (*http.Request, error) + func (s *Set) String() string + type Update struct + Key string + TTL time.Duration + Value string + func (u *Update) HTTPRequest() (*http.Request, error) + func (u *Update) String() string + type Watch struct + Key string + Recursive bool + WaitIndex uint64 + func (w *Watch) HTTPRequest() (*http.Request, error) + func (w *Watch) String() string