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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Conf = &Config{}
)

Conf global variable.

Functions

func Init

func Init() error

Init int config

Types

type Config

type Config struct {
	// base
	// log
	Log *log.Config
	// db
	DB *DB
	// redis
	Redis *Redis
	// http
	BM *HTTPServers
	// http client
	HTTPClient HTTPClient
	// tracer
	Tracer *trace.Config
	//stat
	Stat int
	Stra int
}

Config struct of conf.

type DB

type DB struct {
	Ab *sql.Config
}

DB db config.

type HTTPClient

type HTTPClient struct {
	Read  *bm.ClientConfig
	Write *bm.ClientConfig
}

HTTPClient config

type HTTPServers

type HTTPServers struct {
	Inner *bm.ServerConfig
	Outer *bm.ServerConfig
}

HTTPServers Http Servers

type Redis

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

Redis conf.

Jump to

Keyboard shortcuts

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