Documentation
¶
Index ¶
- func GetAsFloat(value interface{}, defaultValue float64) (result float64)
- func GetAsInt(value interface{}, defaultValue int) (result int)
- func GetAsMap(value interface{}) (result map[string]string)
- func GetAsSlice(value interface{}) []string
- func ReadCollectorConfig(configFile string) (c map[string]interface{}, e error)
- type Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAsFloat ¶
GetAsFloat parses a string to a float or returns the float if float is passed in
func GetAsSlice ¶
func GetAsSlice(value interface{}) []string
GetAsSlice : Parses a json array string to []string
func ReadCollectorConfig ¶
ReadCollectorConfig reads a fullerite collector configuration file
Types ¶
type Config ¶
type Config struct { Prefix string `json:"prefix"` Interval interface{} `json:"interval"` CollectorsConfigPath string `json:"collectorsConfigPath"` DiamondCollectorsPath string `json:"diamondCollectorsPath"` DiamondCollectors []string `json:"diamondCollectors"` Handlers map[string]map[string]interface{} `json:"handlers"` Collectors []string `json:"collectors"` DefaultDimensions map[string]string `json:"defaultDimensions"` InternalServerConfig map[string]interface{} `json:"internalServer"` }
Config type holds the global Fullerite configuration.
func ReadConfig ¶
ReadConfig reads a fullerite configuration file
Click to show internal directories.
Click to hide internal directories.