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 = &Config{}
)

Conf global variable.

Functions

func Init

func Init() error

Init int config

Types

type CheckConf

type CheckConf struct {
	Switch   bool
	ChanNum  int
	ChanSize int
	Ticker   xtime.Duration
	Count    int64
}

CheckConf .

type Config

type Config struct {
	// base
	// log
	Log *log.Config
	//Tracer *conf.Tracer
	Tracer *trace.Config
	//Databus databus
	DataBus *DataBus
	// Databusutil
	Databusutil *databusutil.Config
	// memcache
	Memcaches map[string]*Memcache
	// BM
	BM *bm.ServerConfig
	// AuthDB
	AuthDB *sql.Config
	// AuthMC
	AuthMC *memcache.Config
	// CheckConf
	CheckConf *CheckConf
}

Config struct of conf.

type DataBus

type DataBus struct {
	IdentifySub *databus.Config
	AuthDataBus *databus.Config
}

DataBus databus.

type Memcache

type Memcache struct {
	Prefix string
	*memcache.Config
}

Memcache contains prefix

Jump to

Keyboard shortcuts

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