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: 11 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 BFS

type BFS struct {
	Key    string
	Secret string
}

BFS bfs config

type ChanSize

type ChanSize struct {
	SysMsg int64
}

ChanSize sysmsg channel size.

type Config

type Config struct {
	// base
	App *bm.App
	BFS *BFS
	// http
	BM *bm.ServerConfig
	// db
	ORM *ORM
	// host
	Host *Host
	// log
	Xlog *log.Config
	// tracer
	Tracer *trace.Config
	// rpc client
	RPCClient *RPC
	AccClient *warden.ClientConfig
	// http client
	HTTPClient *bm.ClientConfig
	// chan
	ChanSize   *ChanSize
	Auth       *permit.Config
	CoinClient *warden.ClientConfig
}

Config struct of conf.

type Host

type Host struct {
	Bfs     string
	Manager string
	Msg     string
}

Host host config .

type ORM

type ORM struct {
	Write *orm.Config
	Read  *orm.Config
}

ORM orm write and read config.

type RPC

type RPC struct {
	Account  *rpc.ClientConfig
	Relation *rpc.ClientConfig
}

RPC rpc client config.

Jump to

Keyboard shortcuts

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