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 (

	// config
	Conf = &Config{}
)

var .

Functions

func Init

func Init() (err error)

Init init conf.

Types

type Config

type Config struct {
	// base
	// log
	Log *log.Config
	// tracer
	Tracer *trace.Config
	//app
	Verify *verify.Config
	// http
	BM *bm.ServerConfig
	// db
	Mysql *sql.Config
	// redis
	Redis *Redis
	// RPC
	RPCServer *rpc.ServerConfig
	// property
	Property *Property
}

Config def.

type Property

type Property struct {
	LoadRankPeriod xtime.Duration
}

Property .

type Redis

type Redis struct {
	*redis.Config
	Expire xtime.Duration
}

Redis redis.

Jump to

Keyboard shortcuts

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