Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DistributePairs ¶
func InitKVStores ¶
func InitKVStores()
InitKVStores initializes the KV stores (duh), once in the lifetime of this app. Configuration reload does not affect a running instance.
func PutKVPairs ¶
Types ¶
type KVStore ¶
type KVStore interface { PutKeyValue(key string, value string) (err error) PutKVPairs(kvPairs []*KVPair) (err error) GetKeyValue(key string) (value string, found bool, err error) DistributePairs(kvPairs [](*KVPair)) (err error) }
func NewConsulStore ¶
func NewConsulStore() KVStore
NewConsulStore creates a new consul store. It is possible that the client for this store is nil, which is the case if no consul config is provided.
func NewConsulTxnStore ¶
func NewConsulTxnStore() KVStore
NewConsulTxnStore creates a new consul store that uses Consul Transactions to read/write multiple KVPairs. It is possible that the client for this store is nil, which is the case if no consul config is provided
func NewInternalKVStore ¶
func NewInternalKVStore() KVStore
func NewZkStore ¶
func NewZkStore() KVStore
Click to show internal directories.
Click to hide internal directories.