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.
Types ¶
type KVStore ¶
type KVStore interface { PutKeyValue(key string, value string) (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 NewInternalKVStore ¶
func NewInternalKVStore() KVStore
func NewZkStore ¶
func NewZkStore() KVStore
Click to show internal directories.
Click to hide internal directories.