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{}
)

Functions

func Init

func Init() error

Init init conf

Types

type BnjConfig

type BnjConfig struct {
	TabImg    string
	TabID     int64
	BeginTime string
}

BnjConfig 2018拜年祭配置

type Config

type Config struct {
	// env
	Env string
	// infoc log2
	ShowInfoc2     *infoc.Config
	TagInfoc2      *infoc.Config
	RedirectInfoc2 *infoc.Config
	// show  XLog
	XLog *log.Config
	// tick time
	Tick xtime.Duration
	// tracer
	Tracer *trace.Config
	// httpClinet
	HTTPClient *bm.ClientConfig
	// httpAsyn
	HTTPClientAsyn *bm.ClientConfig
	// httpData
	HTTPData *bm.ClientConfig
	// httpTag
	HTTPTag *bm.ClientConfig
	// httpAd
	HTTPAd *bm.ClientConfig
	// httpActivity
	HTTPActivity *bm.ClientConfig
	// httpBangumi
	HTTPBangumi *bm.ClientConfig
	// httpShow
	HTTPShow *bm.ClientConfig
	// httpDynamic
	HTTPDynamic *bm.ClientConfig
	// httpClinet
	HTTPSearch *bm.ClientConfig
	// rpc Location
	LocationRPC *rpc.ClientConfig
	// http
	BM *HTTPServers
	// host
	Host *Host
	// db
	MySQL *MySQL
	// redis
	Redis *Redis
	// mc
	Memcache *Memcache
	// rpc client
	AccountRPC  *rpc.ClientConfig
	RelationRPC *rpc.ClientConfig
	ArchiveRPC  *rpc.ClientConfig
	FeedRPC     *rpc.ClientConfig
	TagRPC      *rpc.ClientConfig
	ArticleRPC  *rpc.ClientConfig
	ResourceRPC *rpc.ClientConfig
	// databus
	DislikeDatabus *databus.Config
	// ecode
	Ecode *ecode.Config
	// feed
	Feed *Feed
	// bnj2018
	Bnj *BnjConfig
	// BroadcastRPC grpc
	PGCRPC *warden.ClientConfig
	// autoplay mids
	AutoPlayMids []int64
}

type Feed

type Feed struct {
	// feed
	FeedCacheCount int
	LiveFeedCount  int
	// index
	Index *Index
	// ad
	CMResource map[string]int64
}

type HTTPServers

type HTTPServers struct {
	Outer *bm.ServerConfig
}

HTTPServers Http Servers

type Host

type Host struct {
	LiveAPI   string
	Bangumi   string
	Data      string
	Hetongzi  string
	APICo     string
	Ad        string
	Activity  string
	Rank      string
	Show      string
	Dynamic   string
	DynamicCo string
	BigData   string
	Search    string
}

type Index

type Index struct {
	Count          int
	IPadCount      int
	MoePosition    int
	FollowPosition int
	// only archive for data disaster recovery
	Abnormal   bool
	Interest   []string
	FollowMode *feed.FollowMode
}

type Memcache

type Memcache struct {
	Feed *struct {
		*memcache.Config
		ExpireArchive xtime.Duration
	}
	Cache *struct {
		*memcache.Config
		ExpireCache xtime.Duration
	}
}

type MySQL

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

type Redis

type Redis struct {
	Feed *struct {
		*redis.Config
		ExpireRecommend xtime.Duration
		ExpireBlack     xtime.Duration
	}
	Upper *struct {
		*redis.Config
		ExpireUpper xtime.Duration
	}
}

Jump to

Keyboard shortcuts

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