Documentation ¶
Index ¶
- Constants
- func Get(key string) (interface{}, bool)
- func GetAll() map[string]interface{}
- func GetOrDefault(key string, def interface{}) (interface{}, bool)
- func Register(key string, prov Provider) error
- func Resolve() error
- type CfgBlockComponent
- type CfgBlockPipeline
- type CfgBlockSystem
- type CfgBlockSystemAdmin
- type CfgBlockSystemMetrics
- type CfgBlockSystemMetricsReceiver
- type Provider
- type ProviderList
- type ProviderOptions
- type Registry
- type YAMLConfig
Constants ¶
View Source
const ( YML_CFG_KEY_SYS = "global.system" YML_CFG_KEY_COMP = "global.components" YML_CFG_KEY_PPL = "global.pipeline" )
Variables ¶
This section is empty.
Functions ¶
func GetOrDefault ¶
Types ¶
type CfgBlockComponent ¶
type CfgBlockPipeline ¶
type CfgBlockSystem ¶
type CfgBlockSystem struct { Maxprocs int Admin CfgBlockSystemAdmin Metrics CfgBlockSystemMetrics }
type CfgBlockSystemAdmin ¶
type CfgBlockSystemMetrics ¶ added in v0.0.2
type CfgBlockSystemMetrics struct { Enabled bool Interval int Receiver CfgBlockSystemMetricsReceiver }
type CfgBlockSystemMetricsReceiver ¶ added in v0.0.2
type ProviderList ¶ added in v0.0.2
type ProviderList []Provider
func (ProviderList) Len ¶ added in v0.0.2
func (p ProviderList) Len() int
func (ProviderList) Less ¶ added in v0.0.2
func (p ProviderList) Less(i, j int) bool
func (ProviderList) Swap ¶ added in v0.0.2
func (p ProviderList) Swap(i, j int)
type ProviderOptions ¶
type ProviderOptions uint64
const ( ProviderOptionsFileCache ProviderOptions = 1 << iota ProviderOptionsTrustOldCache )
type YAMLConfig ¶
type YAMLConfig struct { System *CfgBlockSystem Components map[string]CfgBlockComponent Pipeline map[string]CfgBlockPipeline }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.