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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// Conf is.
	Conf = &Config{}
)

Functions

func Init

func Init() error

Init init conf

Types

type Config

type Config struct {
	ShowInfoc     *infoc.Config
	TagInfoc      *infoc.Config
	RedirectInfoc *infoc.Config
	CoinInfoc     *infoc.Config
	ViewInfoc     *infoc.Config
	RelateInfoc   *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
	// httpBangumi
	HTTPBangumi *bm.ClientConfig
	// HTTPSearch
	HTTPSearch *bm.ClientConfig
	// HTTPAudio
	HTTPAudio *bm.ClientConfig
	// HTTPWrite
	HTTPWrite *bm.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
	ArchiveRPC2 *rpc.ClientConfig
	TagRPC      *rpc.ClientConfig
	FavoriteRPC *rpc.ClientConfig
	CoinRPC     *rpc.ClientConfig
	AssistRPC   *rpc.ClientConfig
	ThumbupRPC  *rpc.ClientConfig
	DMRPC       *rpc.ClientConfig
	ResourceRPC *rpc.ClientConfig
	HisRPC      *rpc.ClientConfig
	ArticleRPC  *rpc.ClientConfig
	LocationRPC *rpc.ClientConfig
	// BroadcastRPC grpc
	PGCRPC       *warden.ClientConfig
	UGCpayClient *warden.ClientConfig
	// ecode
	Ecode *ecode.Config
	// feed
	Feed *Feed
	// view
	View *View
	// search
	Search *Search
}

Config struct

type Feed

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

Feed struct

type HTTPServers

type HTTPServers struct {
	Outer *bm.ServerConfig
}

HTTPServers Http Servers

type Host

type Host struct {
	Bangumi   string
	Data      string
	Hetongzi  string
	APICo     string
	Rank      string
	BigData   string
	Search    string
	AI        string
	Bvcvod    string
	VIP       string
	Playurl   string
	PlayurlBk string
}

Host struct

type Index

type Index struct {
	Count          int
	IPadCount      int
	MoePosition    int
	FollowPosition int
	// only archive for data disaster recovery
	Abnormal bool
}

Index struct

type Memcache

type Memcache struct {
	Feed *struct {
		*memcache.Config
		Expire xtime.Duration
	}
	Cache *struct {
		*memcache.Config
		Expire xtime.Duration
	}
	Archive *struct {
		*memcache.Config
		RelateExpire xtime.Duration
	}
}

Memcache struct

type MySQL

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

MySQL struct

type Redis

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

Redis struct

type Search struct {
	SeasonNum          int
	MovieNum           int
	SeasonMore         int
	MovieMore          int
	UpUserNum          int
	UVLimit            int
	UserNum            int
	UserVideoLimit     int
	BiliUserNum        int
	BiliUserVideoLimit int
	OperationNum       int
	IPadSearchBangumi  int
	IPadSearchFt       int
}

Search struct

type View

type View struct {
	VipTick xtime.Duration
	// 相关推荐秒开个数
	RelateCnt int
}

View struct

Jump to

Keyboard shortcuts

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