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 Config

type Config struct {
	// log
	Xlog *log.Config
	//Tracer *conf.Tracer
	Tracer *trace.Config
	// VerifyConfig
	VerifyConfig *verify.Config
	// BM
	BM *bm.ServerConfig
	// http client
	HTTPClient *bm.ClientConfig
	// memcache
	Memcache *memcache.Config
	// MemcacheLoginLog
	MemcacheLoginLog *memcache.Config
	// grpc server
	WardenServer *warden.ServerConfig
	// live zookeeper
	LiveZK *livezk.Zookeeper
	// IdentifyConfig
	Identify *IdentifyConfig
	// DataBus config
	DataBus *DataBus
}

Config struct of conf.

type DataBus

type DataBus struct {
	UserLog *databus.Config
}

DataBus data bus config

type IdentifyConfig

type IdentifyConfig struct {
	AuthHost string
	// LoginLogConsumerSize goroutine size
	LoginLogConsumerSize int
	// LoginCacheExpires login check cache expires
	LoginCacheExpires int32
	// IntranetCIDR
	IntranetCIDR []string
}

IdentifyConfig identify config

Jump to

Keyboard shortcuts

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