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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// Conf config
	Conf = &Config{}
)

Functions

func Init

func Init() error

Init init conf

Types

type Config

type Config struct {
	Log      *log.Config
	BM       *bm.ServerConfig
	Tracer   *trace.Config
	Memcache *memcache.Config
	MySQL    *sql.Config
	Ecode    *ecode.Config
	// Property
	Property *Property
	// mail
	MailConf         *Mail
	MailTemplateConf *MailTemplateConfig
	// rpc client
	GRPCClient *RPC
}

Config .

type Mail

type Mail struct {
	Host               string
	Port               int
	Username, Password string
	DueMailReceivers   []string //  []adminname, send to adminname@bilibili.com
	DueAuthorityGroups []string
}

Mail 邮件配置

type MailTemplateConfig

type MailTemplateConfig struct {
	SignTmplTitle   string
	SignTmplContent string
	PayTmplTitle    string
	PayTmplContent  string
}

MailTemplateConfig mail template conf

type Property

type Property struct {
	UpMcnSignStateCron    string
	UpMcnUpStateCron      string
	UpExpirePayCron       string
	UpMcnDataSummaryCron  string
	McnRecommendCron      string
	DealFailRecommendCron string
	CheckMcnSignUpDueCron string
}

Property config for biz logic.

type RPC

type RPC struct {
	Account *warden.ClientConfig
}

RPC rpc client config.

Jump to

Keyboard shortcuts

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