Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Name string Reader io.Reader Parser parser.Parser MaxRetry int RetryDelay time.Duration StopOnFailure bool }
Config is the structure for the Loader's config
type Loader ¶
type Loader struct {
// contains filtered or unexported fields
}
Loader is the Loader's structure
func (*Loader) Load ¶
Load implements the konfig.Loader interface. It reads from its io.Reader and adds the data to the konfig.Values
func (*Loader) MaxRetry ¶
MaxRetry implements konfig.Loader interface and returns the maximum number of time Load method can be retried
func (*Loader) Name ¶
Name implements konfig.Loader. It returns the loader's name for metrics purpose.
func (*Loader) RetryDelay ¶
RetryDelay implements konfig.Loader interface and returns the delay between each retry
func (*Loader) StopOnFailure ¶
StopOnFailure returns whether a load failure should stop the config and the registered closers
Click to show internal directories.
Click to hide internal directories.