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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Conf = &Config{}
)

Functions

func Init

func Init() error

Init init conf

Types

type Config

type Config struct {
	// Env
	Env            string
	LastChangeTime int64
	ReleaseTime    int64
	BnjMainAid     int64
	BnjListAids    []int64
	// interface XLog
	XLog *log.Config
	// tracer
	Tracer *trace.Config
	// stat databus pub
	StatPub            *databus.Config
	StatViewPub        *databus.Config
	ReportMergeDatabus *databus.Config
	// click databus pub
	ClickPub   *databus.Config
	ArchiveRPC *rpc.ClientConfig
	// http
	BM *bm.ServerConfig
	// redis
	Redis      *redis.Config
	HTTPClient *bm.ClientConfig
	// cache time conf
	CacheConf struct {
		PGCReplayTime           int64
		ArcUpCacheTime          int64
		NewAnonymousCacheTime   int64
		NewAnonymousBvCacheTime int64
	}
	// db
	DB *sql.Config
	// hash number
	HashNum int64
	// chan number
	ChanNum int64
	// consumer num
	ConsumeNum int
	// need Init
	NeedInit bool
	// infoc
	Infoc2 *infoc.Config
}

Jump to

Keyboard shortcuts

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