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{}
)

Functions

func Init

func Init() (err error)

Init init conf.

Types

type Config

type Config struct {
	// base
	// log
	Log *log.Config
	// http
	BM     *bm.ServerConfig
	Figure figure
	// databus
	DataSource *DataSource
	// hbase
	HBase *HBaseConfig
	// redis
	Redis *Redis
	// mysql
	Mysql *sql.Config
}

Config def.

type DataSource

type DataSource struct {
	AccountExp *databus.Config
	AccountReg *databus.Config
	Vip        *databus.Config
	Spy        *databus.Config
	Coin       *databus.Config
	ReplyInfo  *databus.Config
	Pay        *databus.Config
	Blocked    *databus.Config
	Danmaku    *databus.Config
}

DataSource config all figure job dataSource

type HBaseConfig

type HBaseConfig struct {
	*hbase.Config
	ReadTimeout  xtime.Duration
	WriteTimeout xtime.Duration
}

HBaseConfig extra hbase config

type Redis

type Redis struct {
	*redis.Config
	Expire         xtime.Duration
	WaiteMidExpire xtime.Duration
}

Redis conf.

Jump to

Keyboard shortcuts

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