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() error

Init init conf

Types

type Biz

type Biz struct {
	ElecAVRankSize int
	ElecUPRankSize int
	RAMAVIDs       []int64
	RAMUPIDs       []int64
	ReloadDuration xtime.Duration
}

Biz .

type CacheTTL

type CacheTTL struct {
	ElecUPRankTTL      int32
	ElecAVRankTTL      int32
	ElecPrepUPRankTTL  int32
	ElecPrepAVRankTTL  int32
	ElecUserSettingTTL int32
}

CacheTTL .

type Config

type Config struct {
	Log         *log.Config
	Tracer      *trace.Config
	BM          *bm.ServerConfig
	Verify      *verify.Config
	Memcache    *memcache.Config
	MySQL       *sql.Config
	Ecode       *ecode.Config
	LocalCache  *LocalCache
	ArchiveGRPC *warden.ClientConfig
	AccountGRPC *warden.ClientConfig
	CacheTTL    *CacheTTL
	Biz         *Biz
}

Config .

type LocalCache

type LocalCache struct {
	ElecAVRankSize int
	ElecAVRankTTL  xtime.Duration
	ElecUPRankSize int
	ElecUPRankTTL  xtime.Duration
}

LocalCache prop.

Jump to

Keyboard shortcuts

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