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

Functions

func Init

func Init() error

Init init conf

Types

type AreaInfo

type AreaInfo struct {
	Name string
}

type CommonConfig

type CommonConfig struct {
	ExpireTime int64
}

CommonConfig .

type Config

type Config struct {
	Log                   *log.Config
	BM                    *bm.ServerConfig
	Verify                *verify.Config
	Tracer                *trace.Config
	Redis                 *redis.Config
	MySQL                 *sql.Config
	LiveAppMySQL          *sql.Config
	Ecode                 *ecode.Config
	LiveDanmuSub          *databus.Config //发送弹幕回调配置
	LiveGiftSendByPaySub  *databus.Config
	LiveGiftSendByFreeSub *databus.Config
	LiveGuardBuySub       *databus.Config
	LivePopularitySub     *databus.Config
	LiveValidLiveDaysSub  *databus.Config
	LiveRoomTagSub        *databus.Config
	LiveRankListSub       *databus.Config
	Common                *CommonConfig
	LRUCache              *LRUConfig
	FirstAreas            map[string]*AreaInfo
}

Config .

type LRUConfig

type LRUConfig struct {
	InstCnt  int
	Bucket   int
	Capacity int
	Timeout  int64
}

LRUConfig .

Jump to

Keyboard shortcuts

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