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

global var

Functions

func Init

func Init() error

Init init conf

Types

type Config

type Config struct {
	// elk
	Log *log.Config
	// http
	BM *bm.ServerConfig
	// memcache
	Memcache *Memcache
	// MySQL
	MySQL *sql.Config
	// ecode
	Ecode *ecode.Config
	// biz property.
	Property *Property
	// rpc server
	RPCServer *rpc.ServerConfig
	// http client
	HTTPClient *bm.ClientConfig
	// vipinfo grpc
	VipinfoRPC  *warden.ClientConfig
	NewYearConf *NewYearConf
	// grpc server
	WardenServer *warden.ServerConfig
	Platform     map[string]string
}

Config config set

type Memcache

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

Memcache memcache

type NewYearConf

type NewYearConf struct {
	ActID               int64
	StartTime           int64
	EndTime             int64
	RandNum             int64
	NoVipBatchToken1    string
	NoVipBatchToken3    string
	NoVipBatchToken12   string
	More180BatchToken1  string
	More180BatchToken3  string
	More180BatchToken12 string
	Less180BatchToken1  string
	Less180BatchToken3  string
	Less180BatchToken12 string
	MonthBatchToken1    string
	MonthBatchToken3    string
	MonthBatchToken12   string
}

NewYearConf .

type Property

type Property struct {
	MessageURL       string
	CaptchaTokenURL  string
	CaptchaVerifyURL string
	CaptchaBID       string
}

Property def.

Jump to

Keyboard shortcuts

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