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
	Conf = &Config{}
)

global var

Functions

func Init

func Init() error

Init init conf

Types

type Config

type Config struct {
	// base
	// env
	Env string
	// elk
	Log *log.Config
	// HTTPClient .
	HTTPClient *bm.ClientConfig
	// http
	BM *HTTPServers
	// tracer
	Tracer *trace.Config
	// MySQL
	MySQL *sql.Config
	// hbase
	HBase          *HBaseConfig
	BlackListHBase *HBaseConfig
	// databuse
	LiveRoomSub   *databus.Config // 开播提醒
	LiveCommonSub *databus.Config // 直播通用
	// push
	Push *push
	// redis
	Redis *Redis
}

Config config set

type HBaseConfig

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

HBaseConfig extra hbase config for compatible

type HTTPServers

type HTTPServers struct {
	Inner *bm.ServerConfig
	Local *bm.ServerConfig
}

HTTPServers Http Servers

type Redis

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

Redis Redis.PushInterval config

Jump to

Keyboard shortcuts

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