Documentation ¶
Overview ¶
Package env created on 2017/6/22.
Index ¶
- func NewEnvConfigurationSource() source.ConfigSource
- type Source
- func (es *Source) AddDimensionInfo(_ map[string]string) error
- func (es *Source) Cleanup() error
- func (es *Source) Delete(_ string) error
- func (es *Source) GetConfigurationByKey(key string) (interface{}, error)
- func (es *Source) GetConfigurations() (map[string]interface{}, error)
- func (es *Source) GetPriority() int
- func (*Source) GetSourceName() string
- func (es *Source) Set(_ string, _ interface{}) error
- func (es *Source) SetPriority(priority int)
- func (*Source) Watch(_ source.EventHandler) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewEnvConfigurationSource ¶
func NewEnvConfigurationSource() source.ConfigSource
NewEnvConfigurationSource configures a new environment configuration.
Types ¶
type Source ¶
Source is a struct.
func (*Source) AddDimensionInfo ¶
AddDimensionInfo no use.
func (*Source) GetConfigurationByKey ¶
GetConfigurationByKey gets required configuration for a particular key.
func (*Source) GetConfigurations ¶
GetConfigurations gets all configuration.
func (*Source) GetPriority ¶
GetPriority returns priority of environment configuration.
func (*Source) GetSourceName ¶
GetSourceName returns the name of environment source.
func (*Source) SetPriority ¶
SetPriority custom priority.
Click to show internal directories.
Click to hide internal directories.