conf

package
v0.0.0-...-83adff0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2020 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// Conf conf
	Conf = &Config{}
)

Functions

func Init

func Init() (err error)

Init config

Types

type Collectors

type Collectors struct {
	Nodes []string `toml:"nodes"`
}

Collectors collector config

type Config

type Config struct {
	Log        *log.Config     `toml:"log"`
	HBase      *HBaseConfig    `toml:"hbase"`
	InfluxDB   *InfluxDBConfig `toml:"influx_db"`
	OpsLog     *OpsLog         `toml:"ops_log"`
	Collectors *Collectors     `toml:"collectors"`
}

Config config.

type HBaseConfig

type HBaseConfig struct {
	Namespace           string         `toml:"namespace"`
	Addrs               string         `toml:"addrs"`
	RPCQueueSize        int            `toml:"rpc_queue_size"`
	FlushInterval       xtime.Duration `toml:"flush_interval"`
	EffectiveUser       string         `toml:"effective_user"`
	RegionLookupTimeout xtime.Duration `toml:"region_lookup_timeout"`
	RegionReadTimeout   xtime.Duration `toml:"region_read_timeout"`
}

HBaseConfig hbase config

type InfluxDBConfig

type InfluxDBConfig struct {
	Addr     string `toml:"addr"`
	Username string `toml:"username"`
	Password string `toml:"password"`
	Database string `toml:"database"`
}

InfluxDBConfig InfluxDBConfig

type OpsLog

type OpsLog struct {
	API string `toml:"api"`
}

OpsLog .

Jump to

Keyboard shortcuts

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