Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Backend ¶
type Backend struct {
// contains filtered or unexported fields
}
Backend loads keys from Consul.
func NewBackend ¶
NewBackend creates a configuration loader that loads from Consul.
type Option ¶ added in v0.4.0
type Option func(*Backend)
Option is used to configure the Consul backend.
func WithPrefetch ¶ added in v0.4.0
func WithPrefetch() Option
WithPrefetch is used to prefetch the entire tree and cache it to avoid further round trips. If the WithPrefix option is used, will fetch the tree under the specified prefix.
func WithPrefix ¶ added in v0.4.0
WithPrefix is used to specify the prefix to prepend on every keys.
Click to show internal directories.
Click to hide internal directories.