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
	Conf = &Config{}
)

Functions

func Init

func Init() (err error)

Init .

Types

type Config

type Config struct {
	// Env
	Env string
	// App
	App *bm.App
	// Xlog is go-common log.
	Xlog *xlog.Config
	// Tracer .
	Tracer *trace.Config
	// ArchiveSub databus
	ArticleSub *databus.Config
	// ArticleStatSub databus
	ArticleStatSub *databus.Config
	// LikeStatSub databus
	LikeStatSub     *databus.Config
	ReplyStatSub    *databus.Config
	FavoriteStatSub *databus.Config
	CoinStatSub     *databus.Config
	// DynamicDbus pub databus
	DynamicDbus *databus.Config
	// BM
	BM *bm.ServerConfig
	// HTTPClient .
	HTTPClient     *bm.ClientConfig
	GameHTTPClient *bm.ClientConfig
	// RPC .
	ArticleRPC *rpc.ClientConfig
	TagRPC     *rpc.ClientConfig
	// DB
	DB *sql.Config
	// Redis
	Redis *redis.Config
	// SMS text message.
	SMS *sms
	// CheatInfoc
	CheatInfoc *infoc.Config
	// ReadInfoc
	ReadInfoc *infoc.Config
	// article interface redis
	ArtRedis *redis.Config
	// Job params
	Job *job
	// Sitemap
	Sitemap Sitemap
}

Config .

type Sitemap

type Sitemap struct {
	Interval int64
	Size     int
}

Sitemap .

Jump to

Keyboard shortcuts

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