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

Documentation

Index

Constants

View Source
const (
	// GetFromDHHDBError 回源db错误
	GetFromDHHDBError = "get_from_dhh_db"
	// ScanFromDHHDBError scan db错误
	ScanFromDHHDBError = "scan_db"
)

Variables

View Source
var (

	// TraceInit weather need init trace
	TraceInit bool

	// Conf config
	Conf = &Config{}
)

Functions

func Init

func Init() error

Init init conf

func RecordTimeCost

func RecordTimeCost() (NowTime int64)

RecordTimeCost ... 记录时间

func RecordTimeCostLog

func RecordTimeCostLog(nowTime int64, desc string)

RecordTimeCostLog 记录日志

Types

type Config

type Config struct {
	Log                 *log.Config
	BM                  *bm.ServerConfig
	BMClient            *bm.ClientConfig
	Verify              *verify.Config
	Tracer              *trace.Config
	VipRedis            *redis.Config
	GuardRedis          *redis.Config
	Redis               *redis.Config
	Memcache            *memcache.Config
	ExpMemcache         *memcache.Config
	LiveUserMysql       *sql.Config
	LiveAppMySQL        *sql.Config
	LiveAppORM          *orm.Config
	Ecode               *eCode.Config
	LiveVipChangePub    *databus.Config
	UserExpMySQL        *sql.Config
	LiveRPC             map[string]*liverRPC.ClientConfig
	LiveEntryEffectPub  *databus.Config
	GuardCfg            *GuardCfg
	AccountRPC          *rpc.ClientConfig
	Switch              *ConfigSwitch
	UserExpExpire       *UserExpExpireConf
	UserDaHangHaiExpire *UserDhhExpireConf
	// report
	Report        *databus.Config
	XanchorClient *warden.ClientConfig
}

Config .

type ConfigSwitch

type ConfigSwitch struct {
	QueryExp int
}

ConfigSwitch config for query

type GuardCfg

type GuardCfg struct {
	OpenEntryEffectDatabus bool
	EnableGuardBroadcast   bool
	DanmuHost              string
}

GuardCfg config for guard

type UserDhhExpireConf

type UserDhhExpireConf struct {
	ExpireTime int32
}

UserDhhExpireConf config for cache expire

type UserExpExpireConf

type UserExpExpireConf struct {
	ExpireTime int32
}

UserExpExpireConf config for cache expire

Jump to

Keyboard shortcuts

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