Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Load ¶
func Load(target interface{}, loader SourcesProvider) error
Load loads configuration of the plugin based on strategies defined by SourcesProvider It ignores errors returned by providers and only propagates the one occurred while unmarshalling
Types ¶
type PluginConfiguration ¶
PluginConfiguration holds common configuration for all the plugins
type Source ¶
Source is a function type representing strategy for loading configuration file into []byte
type SourcesProvider ¶
type SourcesProvider interface {
Sources() []Source
}
SourcesProvider is an interface which provides a slice of configuration source loader functions as strategies
Click to show internal directories.
Click to hide internal directories.