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() (err error)

Init init config.

Types

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
	// httpClinetAsyn
	HTTPClientAsyn *bm.ClientConfig
	// HTTPShopping
	HTTPShopping *bm.ClientConfig
	// bm http
	BM *HTTPServers
	// host
	Host *Host
	// db
	MySQL *MySQL
	// rpc client
	ArchiveRPC *rpc.ClientConfig
	// rpc account
	AccountRPC *rpc.ClientConfig
	// relationRPC
	RelationRPC *rpc.ClientConfig
	// rpc client
	TagRPC *rpc.ClientConfig
	// rpc Article
	ArticleRPC *rpc.ClientConfig
	// rpc Location
	LocationRPC *rpc.ClientConfig
	// Infoc2
	FeedInfoc2    *infoc.Config
	ChannelInfoc2 *infoc.Config
	// memcache
	Memcache *Memcache
	// BroadcastRPC grpc
	PGCRPC *warden.ClientConfig
	// Square Count
	SquareCount int
}

type HTTPServers

type HTTPServers struct {
	Outer *bm.ServerConfig
}

type Host

type Host struct {
	Bangumi  string
	Data     string
	APICo    string
	Activity string
	LiveAPI  string
	Shopping string
}

type Memcache

type Memcache struct {
	Channels *struct {
		*memcache.Config
		Expire xtime.Duration
	}
}

type MySQL

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

Jump to

Keyboard shortcuts

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