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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// Conf config
	Conf = &Config{}
)

Functions

func Init

func Init() error

Init init conf

Types

type BizConfiger

type BizConfiger struct {
	WeightOpt []*model.WeightOPT
}

BizConfiger .

type Config

type Config struct {
	Debug    bool
	Log      *log.Config
	BM       *bm.ServerConfig
	Verify   *verify.Config
	Tracer   *trace.Config
	Redis    *redis.Config
	Memcache *memcache.Config
	MySQL    *MySQL
	Ecode    *ecode.Config
	// ORM
	ORM *orm.Config
	// DataBus databus
	DataBus *DataBus
	// Databusutil
	Databusutil *Databusutil
	// RPC
	RPC *RPC
	//GRPC
	GRPC *GRPC
	// BizConfiger
	BizCfg BizConfiger
	HTTP   *HTTP

	Host *Host

	// mail
	Mail *Mail
}

Config .

type DataBus

type DataBus struct {
	BinLogSub   *databus.Config
	ResourceSub *databus.Config
	TaskSub     *databus.Config
	ArchiveSub  *databus.Config
}

DataBus databus infomation

type Databusutil

type Databusutil struct {
	Task     *databusutil.Config
	Resource *databusutil.Config
}

Databusutil databus group

type GRPC

type GRPC struct {
	Up  *warden.ClientConfig
	Acc *warden.ClientConfig
}

GRPC .

type HTTP

type HTTP struct {
	Fast *bm.ClientConfig
	Slow *bm.ClientConfig
}

HTTP .

type Host

type Host struct {
	API     string
	Videoup string
}

Host .

type Mail

type Mail struct {
	Host               string
	Port               int
	Username, Password string
}

Mail 邮件配置

type MySQL

type MySQL struct {
	Slow *sql.Config
	Fast *sql.Config
}

MySQL .

type RPC

type RPC struct {
	Rel *rpc.ClientConfig
	Up  *rpc.ClientConfig
}

RPC .

Jump to

Keyboard shortcuts

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