Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNoProvider = errors.New("config provider was not online") ErrTimeout = errors.New("timed out while waiting for config provider to come online") )
Functions ¶
This section is empty.
Types ¶
type Provider ¶
type Provider interface { FetchConfig() (types.Config, error) IsOnline() bool ShouldRetry() bool BackoffDuration() time.Duration }
Provider represents an external source of configuration. The source can be local to the host system or it may be remote. The provider dictates whether or not the source is online, if the caller should try again when the source is offline, and how long the caller should wait before retries.
type ProviderCreator ¶
Click to show internal directories.
Click to hide internal directories.