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 Error ¶
type Node ¶
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.14.0
type Result ¶
type Set ¶
Click to show internal directories.
Click to hide internal directories.