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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Conf = &Config{}
)

global var

Functions

func Init

func Init() error

Init init conf

Types

type Broadcast

type Broadcast struct {
	TCPAddr string
	WsAddr  string
	WssAddr string
	Begin   string
	End     string
}

Broadcast breadcast.

type Config

type Config struct {
	// 广播
	Broadcast Broadcast
	// policy
	Policy *model.Policy
	// policy items
	Pitem []*model.Pitem
	// 拜年祭
	Matsuri Matsuri
	// XLog
	XLog *log.Config
	// ecode
	Ecode *ecode.Config
	// host
	Host *Host
	// tracer
	Tracer *trace.Config
	// auth
	Auth *auth.Config
	// verify
	Verify *verify.Config
	// bm
	BM *HTTPServers
	// mysql
	MySQL *MySQL
	// rpc
	ArchiveRPC  *rpc.ClientConfig
	AccountRPC  *rpc.ClientConfig
	HistoryRPC  *rpc.ClientConfig
	AssistRPC   *rpc.ClientConfig
	ResourceRPC *rpc.ClientConfig
	Dm2RPC      *rpc.ClientConfig
	LocRPC      *rpc.ClientConfig
	TagRPC      *rpc.ClientConfig
	// HTTPClient
	HTTPClient *bm.ClientConfig
	// Rule
	Rule *Rule
	Tick *Tick
	// Infoc2
	Infoc2 *infoc.Config
	// PlayURLToken
	PlayURLToken *PlayURLToken
	// grpc client
	AccClient    *warden.ClientConfig
	ArcClient    *warden.ClientConfig
	UGCPayClient *warden.ClientConfig
	// icon
	Icon *icon
	// bnj2019
	Bnj2019 *bnj2019
}

Config is service conf.

type HTTPServers

type HTTPServers struct {
	Outer *bm.ServerConfig
}

HTTPServers bm servers config.

type Host

type Host struct {
	APICo       string
	AccCo       string
	PlayurlCo   string
	H5Playurl   string
	HighPlayurl string
}

Host is host info

type Matsuri

type Matsuri struct {
	PastID  int64
	MatID   int64
	MatTime string
	Tick    time.Duration
}

Matsuri matsuri.

type MySQL

type MySQL struct {
	Show *sql.Config
}

MySQL mysql.

type PlayURLToken

type PlayURLToken struct {
	Secret      string
	PlayerToken string
}

PlayURLToken playurl auth token.

type Rule

type Rule struct {
	// timeout
	VsTimeout   time.Duration
	NoAssistMid int64
	VipQn       []int
	LoginQn     int
	MaxFreeQn   int
	AutoQn      int
	PlayurlGray int64
}

Rule rules

type Tick

type Tick struct {
	// tick time
	CarouselTick time.Duration
	ParamTick    time.Duration
	IconTick     time.Duration
}

Tick tick time.

Jump to

Keyboard shortcuts

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