config

package
v0.0.0-...-e644ee9 Latest Latest
Warning

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

Go to latest
Published: May 25, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var COMMAND map[string]string

Functions

This section is empty.

Types

type Config

type Config struct {
	ServerConf   Server   `yaml:"server"`
	InfluxdbConf Influxdb `yaml:"influxdb"`
	PlugConf     Plug     `yaml:"plug"`
}
var Conf Config

type Influxdb

type Influxdb struct {
	Addr      string `yaml:"addr"`
	Username  string `yaml:"username"`
	Password  string `yaml:"password"`
	Database  string `yaml:"database"`
	Precision string `yaml:"precision"`
	Tag       Tag    `yaml:"tag"`
}

type Plug

type Plug struct {
	BinaryPath string `yaml:"binarypath"`
	Get        string `yaml:"get"`
	Set        string `yaml:"set"`
	Incr       string `yaml:"incr"`
	Decr       string `yaml:"decr"`
	Lpush      string `yaml:"lpush"`
	Rpush      string `yaml:"rpush"`
	Lpop       string `yaml:"lpop"`
	Rpop       string `yaml:"rpop"`
	Sadd       string `yaml:"sadd"`
	Hset       string `yaml:"hset"`
	Spop       string `yaml:"spop"`
	Mset       string `yaml:"mset"`
}

type Server

type Server struct {
	Addr    string `yaml:"addr"`
	Grafana string `yaml:"grafana"`
}

type Tag

type Tag struct {
	Host    string `yaml:"host"`
	Service string `yaml:"service"`
}

Jump to

Keyboard shortcuts

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