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 (
	// ConfPath local config path
	ConfPath string
	// Conf config
	Conf = &Config{}
)

Functions

func Init

func Init() (err error)

Init init conf

Types

type Config

type Config struct {
	// base
	// channal len
	ChanSize int64
	// log
	Log *log.Config
	// identify
	App *bm.App
	// tracer
	Tracer *trace.Config
	// tick load pgc
	Tick time.Duration
	// db
	DB *DB
	// BM HTTPServers
	BM *bm.ServerConfig
	// rpc client
	RPCClient *RPCClient
}

Config str

type DB

type DB struct {
	Rating *sql.Config
}

DB is db config

type RPCClient

type RPCClient struct {
	Account *rpc.ClientConfig
}

RPCClient is rpc client config

Jump to

Keyboard shortcuts

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