Documentation ¶
Overview ¶
Package consul reads configuration from the Consul KV store
Consul is a highly available and distributed service discovery and key-value store designed with support for the modern data center to make distributed systems and configuration easy.
e.g. CONFIG_URI=consul://prod.consul.cloud.com:8301/my/key?dc=frankfurt1&token=123
Index ¶
Constants ¶
View Source
const Name = "consul"
Name contains the adapter registered name
Variables ¶
View Source
var ErrMissingStoreKey = errors.New("cannot initialise config without store key")
ErrMissingStoreKey means the given URL does not contain any key (path)
View Source
var ErrStoreConfigEmpty = errors.New("store config is empty")
ErrStoreConfigEmpty means the configuration exists, but it is empty
View Source
var ErrStoreKeyNotFound = errors.New("store config does not exist")
ErrStoreKeyNotFound means the configuration does not exist on Consul
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.