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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	//Conf .
	Conf = &Config{}
)

Functions

func Init

func Init() (err error)

Init .

Types

type Config

type Config struct {
	Env string
	// base
	// host
	Host *Host
	// channal len
	ChanSize int64
	// log
	Xlog *log.Config
	// http
	BM *bm.ServerConfig
	// Auth
	Auth *permit.Config
	// tracer
	Tracer *trace.Config
	// tick load pgc
	Tick time.Duration
	// db
	DB *DB
	// db
	ORMArchive *orm.Config
	// databus
	VideoupPub  *databus.Config
	UpCreditPub *databus.Config
	// redis
	Redis *Redis
	// hbase
	HBase *hbaseConf
	// http client test
	HTTPClient HTTPClient
	// rpc
	AccountRPC    *warden.ClientConfig
	UpsRPC        *warden.ClientConfig
	TagDisRPC     *rpc.ClientConfig
	Ecode         *ecode.Config
	ManagerReport *databus.Config
}

Config .

type DB

type DB struct {
	Archive     *sql.Config
	ArchiveRead *sql.Config
	Manager     *sql.Config
	Oversea     *orm.Config
	Creative    *sql.Config
}

DB .

type HTTPClient

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

HTTPClient test

type Host

type Host struct {
	API       string
	MngSearch string
	Manager   string
	Data      string
	Account   string
	Task      string
	Archive   string
}

Host .

type Redis

type Redis struct {
	Track *struct {
		*redis.Config
		Expire time.Duration
	}
	Secondary *struct {
		*redis.Config
		Expire time.Duration
	}
}

Redis .

Jump to

Keyboard shortcuts

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