configuration

package
v0.1.1-0...-828e7a2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 12, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Base

type Base struct {
	Metrics       []Metrics `yaml:"metrics"`
	RemoveAllHost bool      `yaml:"remove_all_host"`
	Port          int       `yaml:"port"`
}

Base represents the static configuration read from yaml file

func Parse

func Parse(fileLocation string) (cfg *Base, e error)

Parse takes the config location, parses the yaml and returns Config struct represenation of the same

type Metrics

type Metrics struct {
	Name         string   `yaml:"name"`
	RemoveMetric bool     `yaml:"remove_metric"`
	RemoveTags   []string `yaml:"remove_tags"`
	RemoveHost   bool     `yaml:"remove_host"`
}

Metrics represents the static configuration of a metric entity from Base

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL