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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// Conf is global config object.
	Conf = &Config{}
)

Functions

func Init

func Init() (err error)

Init init config.

Types

type BVC

type BVC struct {
	Bvc       string
	GapKey    string
	AppendKey string
}

BVC key

type Config

type Config struct {
	Host *Host
	// interface XLog
	XLog  *log.Config
	Redis *redis.Config
	// db
	DB *DB
	// http client
	HTTPClient *blademaster.ClientConfig
	// databus sub
	Bvc2VuSub     *databus.Config
	VideoupSub    *databus.Config
	ArcResultSub  *databus.Config
	StatSub       *databus.Config
	VideoshotSub2 *databus.Config
	// databus pub
	VideoupPub *databus.Config
	BlogPub    *databus.Config
	CheckFrPub *databus.Config
	// rpc
	AccRPC *warden.ClientConfig
	// mail
	Mail          *Mail
	Bm            *blademaster.ServerConfig
	ManagerReport *databus.Config
	// others
	SpecialUp   []int64
	Tels        string
	ChangeDebug bool
	ChangeMid   int64
	//灰度控制
	Debug    bool
	DebugMid int64

	BvcConsumeTimeout int64
}

Config is project all config.

type DB

type DB struct {
	Archive     *sql.Config
	ArchiveRead *sql.Config
	Manager     *sql.Config
}

DB is db config.

type Host

type Host struct {
	Message  string
	API      string
	Monitor  string
	Act      string
	Bvc      *BVC
	Push     *PushC
	RecCover string
}

Host is hosts

type Mail

type Mail struct {
	Host, Checkout     string
	Port               int
	Username, Password string
	Addr               []*MailElemenet
	PrivateAddr        []*MailElemenet
}

Mail 邮件配置

type MailElemenet

type MailElemenet struct {
	Type string
	Desc string
	Addr []string
}

MailElemenet 邮件接收人配置

type PushC

type PushC struct {
	AppID      string
	BusinessID string
	Token      string
}

PushC 创作姬app推送消息配置

Jump to

Keyboard shortcuts

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