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: 13 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 {
	// tracer
	Tracer *trace.Config
	// xlog
	Xlog *log.Config
	// Identify
	VerifyConfig *verify.Config
	// db
	Mysql *sql.Config
	// mc
	Memcache *Memcache
	// app
	App *bm.App
	// BM
	BM *bm.ServerConfig
	// RPC
	RPCServer *rpc.ServerConfig
	// grpc
	WardenServer *warden.ServerConfig
	DC           *DC
	ServiceConf  *ServiceConf
}

Config login conf

type DC

type DC struct {
	Num  int
	Desc string
}

DC DC

type Memcache

type Memcache struct {
	*memcache.Config
	Expire xtime.Duration
}

Memcache cache

type ServiceConf

type ServiceConf struct {
	SupportOld bool
	Permit     map[string]string
}

ServiceConf Switch

Jump to

Keyboard shortcuts

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