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 (
	// ConfPath local config path
	ConfPath string
	// Conf config
	Conf = &Config{}
)

Functions

func Init

func Init() (err error)

Init init conf

Types

type BBudget

type BBudget struct {
	Year         int64
	AnnualBudget int64
	DayBudget    int64
}

BBudget config.

type Bfs

type Bfs struct {
	Addr        string
	Bucket      string
	Key         string
	Secret      string
	MaxFileSize int
}

Bfs struct.

type Budget

type Budget struct {
	Video  *BBudget
	Column *BBudget
	Bgm    *BBudget
}

Budget config.

type Config

type Config struct {
	// base
	// channal len
	ChanSize int64
	// log
	Log *log.Config
	// identify
	App *bm.App
	// tracer
	Tracer *trace.Config
	// tick load pgc
	Tick time.Duration
	// orm
	ORM *ORM
	// host
	Host *Host
	// Bfs
	Bfs *Bfs
	// http client
	HTTPClient *bm.ClientConfig
	// image client
	ImageClient *bm.ClientConfig
	// BM HTTPServers
	BM *bm.ServerConfig
	// budget
	Budget *Budget
	// rpc client
	VipRPC *rpc.ClientConfig
	// grpc client
	Account *warden.ClientConfig
	// shell config
	ShellConf *ShellConfig
	OtherConf *OtherConfig
}

Config str

type Host

type Host struct {
	Message    string
	Common     string
	VideoType  string
	ColumnType string
	Creative   string
	API        string
}

Host is hosts

type ORM

type ORM struct {
	Allowance *sql.Config
	Growup    *orm.Config
}

ORM is orm config

type OtherConfig

type OtherConfig struct {
	// true需要consume数据,false不consume数据
	OfflineOrderConsume bool
}

OtherConfig 其他配置

type ShellConfig

type ShellConfig struct {
	CustomID    string
	Token       string
	PayHost     string
	CallbackURL string
}

ShellConfig 贝壳系统配置

Jump to

Keyboard shortcuts

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