Documentation ¶
Index ¶
- Constants
- 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
- type Client
- type Create
- type Delete
- type Error
- type Get
- type Node
- type Nodes
- type Result
- type Set
- type Update
- type Watch
Constants ¶
View Source
const ( ErrorKeyNotFound = 100 ErrorNodeExist = 105 ErrorEventIndexCleared = 401 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Delete ¶ added in v0.5.1
TODO(bcwaldon): Should Delete be separate from CompareAndDelete?
func (*Delete) HTTPRequest ¶ added in v0.5.1
type Error ¶ added in v0.5.1
type Node ¶ added in v0.5.1
type Node struct { Key string `json:"key"` Value string `json:"value"` TTL int `json:"ttl"` Nodes Nodes `json:"nodes"` ModifiedIndex uint64 `json:"modifiedIndex"` CreatedIndex uint64 `json:"createdIndex"` }
func (Node) TTLDuration ¶ added in v0.8.2
type Result ¶ added in v0.5.1
type Set ¶ added in v0.5.1
Click to show internal directories.
Click to hide internal directories.