Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DistributePairs ¶
func DistributePairs(kvPairs [](*KeyValuePair)) (err error)
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 PutKVPair ¶
func PutKVPair(kvPair *KeyValuePair) (err error)
Types ¶
type KeyValuePair ¶ added in v0.13.0
func NewKVPair ¶
func NewKVPair(key string, value string) *KeyValuePair
func (*KeyValuePair) String ¶ added in v0.13.0
func (kvPair *KeyValuePair) String() string
type KeyValueStore ¶ added in v0.13.0
type KeyValueStore interface { PutKeyValue(key string, value string) (err error) GetKeyValue(key string) (value string, found bool, err error) DistributePairs(kvPairs [](*KeyValuePair)) (err error) }
func NewConsulStore ¶
func NewConsulStore() KeyValueStore
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() KeyValueStore
func NewZkStore ¶
func NewZkStore() KeyValueStore
Click to show internal directories.
Click to hide internal directories.