Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Consul ¶
type Consul interface { KVTransact(datacenter string, operations []KVOperation) ([]KVTransactionResult, []KVTransactionError, error) IsVerbSupported(verb string) bool }
Consul represents the consul client.
type KVOperation ¶
type KVOperation struct { Verb string `json:"verb"` Key string `json:"key"` Value json.RawMessage `json:"value"` }
KVOperation represents a consul key-value operation.
type KVTransactionError ¶
KVTransactionError represents a key-value transaction error.
type KVTransactionResult ¶
type KVTransactionResult struct { Index int `json:"index"` Key string `json:"key"` Value json.RawMessage `json:"value"` }
KVTransactionResult represents a key-value transaction result.
Click to show internal directories.
Click to hide internal directories.