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

Functions

func Init

func Init() (err error)

Init init conf.

Types

type CoinJob

type CoinJob struct {
	// award conf
	StartTime   int64
	Start       bool
	LoginExpire xtime.Duration
}

CoinJob job conf.

type Config

type Config struct {
	Env          string
	Sms          *Sms
	Databus      *databus.Config
	LoginDatabus *databus.Config
	ExpDatabus   *databus.Config
	Xlog         *log.Config
	DB           *DB
	CoinJob      *CoinJob
	AccountRPC   *warden.ClientConfig
	MemRPC       *warden.ClientConfig
	ArchiveRPC   *rpc.ClientConfig
	CoinRPC      *rpc.ClientConfig
	// BM
	BM *bm.ServerConfig
	// redis
	Redis       *redis.Config
	Databusutil *databusutil.Config
}

Config conf.

type DB

type DB struct {
	Coin *sql.Config
}

DB db conf

type Sms

type Sms struct {
	Phone string
	Token string
}

Sms sms conf.

Jump to

Keyboard shortcuts

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