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: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// Conf is global config
	Conf = &Config{Prom: &Prom{}}
)

Functions

func Init

func Init()

Init .

Types

type Config

type Config struct {
	// http
	BM *bm.ServerConfig
	// XLog
	Log *log.Config
	// monitor
	Monitor *monitor.MonitorConfig
	// kafka
	Kafka       *kafka.Config
	NeedConsume bool
	// Prometheus
	Prom *Prom

	// mysql
	MySQL *sql.Config
	// redis
	Redis *redis.Config
	// infoc
	CollectInfoc *infoc.Config
	// collect fronend log
	CollectFE bool
	// products
	Products string
	// contains filtered or unexported fields
}

Config service config

func (*Config) Set

func (e *Config) Set(text string) error

Set .

type Prom

type Prom struct {
	Promed   bool
	IgnoreNA bool
	Factor   int
	Limit    uint64
}

Prom .

Jump to

Keyboard shortcuts

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