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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Conf = &Config{}
)

Conf global variable.

Functions

func Init

func Init() (err error)

Init create config instance.

Types

type Config

type Config struct {
	// base
	// app
	App *bm.App
	// Env
	Env string
	// goroutine sleep
	Tick time.Duration
	// log
	Xlog *log.Config
	// httpClinet
	Mysql *sql.Config
	Judge *Judge
	// bm service
	BM *bm.ServerConfig
}

Config struct of conf.

type Judge

type Judge struct {
	ReservedTime     time.Duration // 结案前N分钟停止获取case
	VoteTimer        time.Duration
	CaseTimer        time.Duration
	JuryTimer        time.Duration
	ConfTimer        time.Duration
	CaseEndVoteTotal int64
}

Judge is judge config.

Jump to

Keyboard shortcuts

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