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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Conf = &Config{}
)

Functions

func Init

func Init() error

Types

type ABTest

type ABTest struct {
	Range int
}

type Config

type Config struct {
	// Env
	Env string
	// show  XLog
	Log *log.Config
	// tick time
	Tick xtime.Duration
	// tracer
	Tracer *trace.Config
	// httpClinet
	HTTPClient *bm.ClientConfig
	// bm http
	BM *HTTPServers
	// db
	Ecode *ecode.Config
	MySQL *MySQL
	// duration
	Duration *Duration
	// Splash
	Splash *Splash
	// interestJSONFile
	InterestJSONFile string
	// StaticJsonFile
	StaticJSONFile string
	// guide rand
	GuideRandom *GuideRandom
	// domain
	Domain *Domain
	ABTest *ABTest
	// host
	Host *Host
	// sideBar limit id
	SideBarLimit []int64
	// resource
	ResourceRPC *rpc.ClientConfig
	// infoc2
	InterestInfoc *infoc.Config
	// BroadcastRPC grpc
	BroadcastRPC *warden.ClientConfig
	// White
	White *White
	// 垃圾白名单
	ShowTabMids []int64
	// location rpc
	LocationRPC *rpc.ClientConfig
	// show hot all
	ShowHotAll bool
	// rpc server2
	RPCServer *rpc.ServerConfig
}

type Domain

type Domain struct {
	Addr      []string
	ImageAddr []string
}

type Duration

type Duration struct {
	// splash
	Splash string
}

type GuideRandom

type GuideRandom struct {
	Random map[string]int
	Buvid  map[string]int
	Feed   uint32
}

type HTTPServers

type HTTPServers struct {
	Outer *bm.ServerConfig
}

type Host

type Host struct {
	Ad   string
	Data string
	VC   string
}

type MySQL

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

type Splash

type Splash struct {
	Random map[string][]string
}

type White

type White struct {
	List map[string][]string
}

Jump to

Keyboard shortcuts

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