config

package
v0.0.0-...-528b4df Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2017 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccoutingConf

type AccoutingConf struct {
	Database    string `toml:"database"`
	Measurement string `toml:"measurement"`

	Host    string   `toml:"host"`
	Network string   `toml:"network"`
	Exclude []string `toml:"exclude"`
}

type Config

type Config struct {
	Influx struct {
		Address  string `toml:"address"`
		User     string `toml:"user"`
		Password string `toml:"password"`
	} `toml:"influx"`
	Snmp      map[string]SnmpConf
	Accouting map[string]AccoutingConf
	MySql     map[string]MySqlConf
	Syslog    map[string]syslog.Recorder
}

func Load

func Load(path string) (*Config, error)

type MySqlConf

type MySqlConf struct {
	Database    string `toml:"database"`
	Measurement string `toml:"measurement"`
	SampleTime  int    `toml:"sample_time"`

	SqlUri  string      `toml:"sql_uri"`
	Queries []util.Pair `toml:"queries"`
	Tags    []util.Pair `toml:"tags"`
}

type SnmpConf

type SnmpConf struct {
	Host        string      `toml:"host"`
	Community   string      `toml:"community"`
	Database    string      `toml:"database"`
	Measurement string      `toml:"measurement"`
	SampleTime  int         `toml:"sample_time"`
	DataPoints  []util.Pair `toml:"datapoints"`
	Tags        []util.Pair `toml:"tags"`
}

Jump to

Keyboard shortcuts

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