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: 14 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
	Verify *verify.Config
	Tracer *trace.Config
	Ecode  *ecode.Config
	// rpc client
	AccountRPC *rpc.ClientConfig
	// gorm
	Upcrm            *orm.Config
	ArchiveOrm       *orm.Config
	MailConf         *Mail
	MailTemplateConf *MailTemplateConfig
	DatabusConf      *DataBusConfig
	GRPCClient       *GRPCClient
	// cron job
	Job    *JobCron
	IsTest bool
}

Config .

type DataBusConfig

type DataBusConfig struct {
	ArchiveNotify *databus.Config
	Archive       *databus.Config
}

DataBusConfig databus config

type GRPCClient

type GRPCClient struct {
	Up      *warden.ClientConfig
	Archive *warden.ClientConfig
}

GRPCClient .

type JobCron

type JobCron struct {
	UpCheckDateDueTaskTime string
	TaskScheduleTime       string
	CheckStateJobTime      string
	UpdateUpTidJobTime     string
}

JobCron 任务时间配置

type Mail

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

Mail 邮件配置

type MailTemplateConfig

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

MailTemplateConfig mail template conf

Jump to

Keyboard shortcuts

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