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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ConfPath string
	Conf     *Config
)

global var

Functions

func Init

func Init() (err error)

Init init conf

Types

type AssistConfig

type AssistConfig struct {
	StartTime string
}

AssistConfig Assist configurations .

type Config

type Config struct {
	BM *bm.ServerConfig
	//reply
	Reply *Reply
	// HTTPClinet
	HTTPClient        *bm.ClientConfig
	DrawyooHTTPClient *bm.ClientConfig
	FilterGRPCClient  *warden.ClientConfig
	FeedGRPCClient    *warden.ClientConfig
	AccountGRPCClient *warden.ClientConfig
	// rpc
	RPCClient2 *RPCClient2
	// mysql
	MySQL *MySQL
	// redis
	Redis *Redis
	// mc
	Memcache *Memcache
	// seq conf
	Seq *Seq
	// kafka
	Databus *databus.Config
	// tracer
	Tracer *trace.Config
	// XLog
	XLog *log.Config
	// auth
	Auth *auth.Config
	// verify
	Verify *verify.Config
	// ecode
	Ecode *ecode.Config

	Host *Host
	// appkey type
	AppkeyType map[string][]int8
	// supervision conf
	Supervision    *Supervision
	AssistConfig   *AssistConfig
	Identification *Identification
	ReportAgent    *log.AgentConfig
	UserReport     *databus.Config
	// es config
	Es *elastic.Config
	// info config
	Infoc *infoc.Config
}

Config represent service conf

type Host

type Host struct {
	API    string
	Search string
}

Host host.

type Identification

type Identification struct {
	SwitchOn bool
}

Identification identification configurations.

type Memcache

type Memcache struct {
	*memcache.Config
	Expire      time.Duration
	EmptyExpire time.Duration
}

Memcache represent mc conf

type MySQL

type MySQL struct {
	Reply      *sql.Config
	ReplySlave *sql.Config
}

MySQL represent mysql conf

type RPCClient2

type RPCClient2 struct {
	Account  *rpc.ClientConfig
	Filter   *rpc.ClientConfig
	Location *rpc.ClientConfig
	Assist   *rpc.ClientConfig
	Figure   *rpc.ClientConfig
	Seq      *rpc.ClientConfig
	Thumbup  *rpc.ClientConfig
	Archive  *rpc.ClientConfig
	Article  *rpc.ClientConfig
}

RPCClient2 represent rpc conf

type Redis

type Redis struct {
	*redis.Config
	IndexExpire   time.Duration
	ReportExpire  time.Duration
	UserCntExpire time.Duration
	UserActExpire time.Duration
}

Redis represent redis conf

type Reply

type Reply struct {
	HotReply         int
	MaxPageSize      int
	MinConLen        int
	MaxConLen        int
	SecondDefSize    int
	SecondDefPageNum int
	EmojiExpire      time.Duration
	MaxEmoji         int
	BigdataFilter    bool
	// url
	BigdataURL          string
	AiTopicURL          string
	VipURL              string
	FansReceivedListURL string
	BlockStatusURL      string
	CaptchaTokenURL     string
	CaptchaVerifyURL    string
	CreditUserURL       string
	ReplyLogSearchURL   string

	AidWhiteList []int64
	ForbidList   []int64
	BnjAidList   []int64

	// 默认排序开关
	SortByHotOids  map[string]int8
	SortByTimeOids map[string]int8
	HideFloorOids  map[string]int8

	// 拜年祭的一些视频默认热评数目需要调整到N个
	HotReplyConfig map[string]map[string]int
}

Reply represents reply conf

type Seq

type Seq struct {
	BusinessID int64
	Token      string
}

Seq Conf

type Supervision

type Supervision struct {
	StartTime   string
	EndTime     string
	Completed   bool
	Location    string
	ReportAgent *log.AgentConfig
}

Supervision supervision .

Jump to

Keyboard shortcuts

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