Documentation ¶
Overview ¶
Package config is an interface for dynamic configuration.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Default Config Manager DefaultConfig = NewConfig() )
Functions ¶
Types ¶
type Config ¶
type Config interface { // provide the reader.Values interface reader.Values // Stop the config loader/watcher Close() error // Load config sources Load(source ...source.Source) error // Force a source changeset sync Sync() error // Watch a value for changes Watch(path ...string) (Watcher, error) }
Config is an interface abstraction for dynamic configuration
type Option ¶
type Option func(o *Options)
func WithLoader ¶
WithLoader sets the loader for manager config
func WithSource ¶
WithSource appends a source to list of sources
Directories ¶
Path | Synopsis |
---|---|
Package encoder handles source encoding formats
|
Package encoder handles source encoding formats |
package loader manages loading from multiple sources
|
package loader manages loading from multiple sources |
Package reader parses change sets and provides config values
|
Package reader parses change sets and provides config values |
Package source is the interface for sources
|
Package source is the interface for sources |
configmap
Package configmap config is an interface for dynamic configuration.
|
Package configmap config is an interface for dynamic configuration. |
file
Package file is a file source.
|
Package file is a file source. |
grpc/proto
Package grpc is a generated protocol buffer package.
|
Package grpc is a generated protocol buffer package. |
memory
Package memory is a memory source
|
Package memory is a memory source |
runtimevar
package runtimevar is the source for gocloud.dev/runtimevar
|
package runtimevar is the source for gocloud.dev/runtimevar |
url
Package url loads changesets from a url
|
Package url loads changesets from a url |
Click to show internal directories.
Click to hide internal directories.