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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Conf = &Config{}
)

Conf is

Functions

func Init

func Init() error

Init init conf

Types

type Bnj2019

type Bnj2019 struct {
	Tick          xtime.Duration
	MainAid       int64
	AdAv          int64
	AidList       []int64
	ElecBigText   string
	ElecSmallText string
	WhiteMids     []int64
	FakeElec      int
}

Bnj2019 is

type BuildLimit

type BuildLimit struct {
	CooperationIOS     int
	CooperationAndroid int
}

BuildLimt for build limit

type Config

type Config struct {
	// Env
	Env       string
	AutoLimit int64
	DMRegion  []int16
	// interface XLog
	XLog    *log.Config
	Bnj2019 *Bnj2019
	// infoc
	InfocCoin   *infoc.Config
	InfocView   *infoc.Config
	InfocRelate *infoc.Config
	UseractPub  *databus.Config
	DislikePub  *databus.Config
	// tick time
	Tick xtime.Duration
	// vip tick
	VipTick xtime.Duration
	// tracer
	Tracer *trace.Config
	// httpClinet
	HTTPClient *bm.ClientConfig
	// httpWrite
	HTTPWrite *bm.ClientConfig
	// httpbangumi
	HTTPBangumi *bm.ClientConfig
	// httpaudio
	HTTPAudio *bm.ClientConfig
	// http
	BM *HTTPServers
	// httpAd
	HTTPAD *bm.ClientConfig
	// httpGame
	HTTPGame *bm.ClientConfig
	// HTTPAsync
	HTTPAsync *bm.ClientConfig
	// HTTPGameAsync
	HTTPGameAsync *bm.ClientConfig
	// httpClinet
	HTTPSearch *bm.ClientConfig
	// host
	Host *Host
	// rpc client
	AccountRPC  *rpc.ClientConfig
	ArchiveRPC  *rpc.ClientConfig
	TagRPC      *rpc.ClientConfig
	AssistRPC   *rpc.ClientConfig
	HisRPC      *rpc.ClientConfig
	ResourceRPC *rpc.ClientConfig
	RelationRPC *rpc.ClientConfig
	FavoriteRPC *rpc.ClientConfig
	CoinRPC     *rpc.ClientConfig
	DMRPC       *rpc.ClientConfig
	ActivityRPC *rpc.ClientConfig
	LocationRPC *rpc.ClientConfig
	// db
	MySQL *MySQL
	// ecode
	Ecode *ecode.Config
	// mc
	Memcache *Memcache
	// PlayURL
	PlayURL *PlayURL
	// 相关推荐秒开个数
	RelateCnt  int
	RelateGray int64
	// buildLimit
	BuildLimit *BuildLimit
	// Warden Client
	ThumbupClient *warden.ClientConfig
}

Config struct

type HTTPServers

type HTTPServers struct {
	Outer *bm.ServerConfig
}

HTTPServers Http Servers

type Host

type Host struct {
	Bangumi   string
	APICo     string
	Activity  string
	Elec      string
	AD        string
	Data      string
	Archive   string
	APILiveCo string
	Game      string
	VIP       string
	AI        string
	Search    string
	Bvcvod    string
}

Host struct

type Memcache

type Memcache struct {
	Archive *struct {
		*memcache.Config
		ArchiveExpire  xtime.Duration
		RelateExpire   xtime.Duration
		AddonExpire    xtime.Duration
		RecommedExpire xtime.Duration
	}
}

Memcache struct

type MySQL

type MySQL struct {
	Show    *sql.Config
	Manager *sql.Config
}

MySQL struct

type PlayURL

type PlayURL struct {
	Secret string
}

PlayURL playurl token's secret.

Jump to

Keyboard shortcuts

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