Documentation ¶
Index ¶
Constants ¶
View Source
const (
EnvVarPrefix = "CLOUDSURVEY_"
)
Variables ¶
This section is empty.
Functions ¶
func ApplyEnvironmentVariables ¶
func ApplyEnvironmentVariables(tree *toml.Tree) error
ApplyEnvironmentVariables will overwrite any values in the tree for which an environmental override of the form CLOUDSURVEY_... is found. Overrides follow the same conventions as InfluxDB.
Types ¶
type Config ¶
type Config struct { Main Main `toml:"main"` Credentials map[string][]*Credential `toml:"credentials"` Sources map[string][]*Source `toml:"sources"` }
func FromString ¶
type Credential ¶
type Credential struct { Name string `toml:"name"` From string `toml:"from"` Scopes []string `toml:"scopes"` MetricTags map[string]string `toml:"metric_tags"` Disabled bool `toml:"disabled"` // contains filtered or unexported fields }
func (*Credential) Configure ¶
func (c *Credential) Configure(x interface{}) error
Click to show internal directories.
Click to hide internal directories.