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

global var

Functions

func Init

func Init() error

Init init conf

Types

type Config

type Config struct {
	Log        *log.Config
	HTTPClient *blademaster.ClientConfig
	Tracer     *trace.Config
	Auth       *auth.Config
	Verify     *verify.Config
	// Wechat wechat config
	Wechat *wechat
	// HBase for fans
	HBase *hbaseConf
	// FansHBase for attention groups + active time
	FansHBase *hbaseConf
	Redis     *redis.Config
	// MySQL
	MySQL      *sql.Config
	AccountRPC *rpc.ClientConfig
	// ArchiveSub archive_result databus consumer
	ArchiveSub *databus.Config
	// RelationSub relation_xxx databus consumer
	RelationSub *databus.Config
	Push        *push
	// ArcPush archive push settings
	ArcPush *arcPush
	PushRPC *warden.ClientConfig
	// Anti antispam
	Anti   *antispam.Config
	Bm     *blademaster.ServerConfig
	Abtest *abtest
}

Config config set

type ForbidTime

type ForbidTime struct {
	PushForbidStartTime string
	PushForbidEndTime   string
}

ForbidTime 禁止时间范围

type Proportion

type Proportion struct {
	ProportionStartFrom string
	Proportion          string //必须是2位小数,比如:1.00, 0.05
}

Proportion 灰度uid范围

Jump to

Keyboard shortcuts

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