Documentation ¶
Index ¶
Constants ¶
View Source
const (
DefaultFetchTimeout = time.Minute
)
Variables ¶
View Source
var ( ErrNoProviders = errors.New("no config providers were online") ErrTimeout = errors.New("timed out while waiting for a config provider to come online") )
Functions ¶
This section is empty.
Types ¶
type Engine ¶
type Engine struct { ConfigCache string FetchTimeout time.Duration Logger log.Logger Root string // contains filtered or unexported fields }
Engine represents the entity that fetches and executes a configuration.
func (*Engine) AddProvider ¶
AddProvider registers a configuration provider with the engine.
func (Engine) GetProvider ¶
GetProvider returns the specified provider.
Click to show internal directories.
Click to hide internal directories.