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: 11 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 BRatio

type BRatio struct {
	BType int
	Ratio float64
}

BRatio .

type BubbleConfig

type BubbleConfig struct {
	BRatio []*BRatio
}

BubbleConfig.

type Config

type Config struct {
	// base
	// log
	Log *log.Config
	// Mysql
	Mysql *Mysql
	// tracer
	Tracer *trace.Config
	// key secret
	KeySecret *KeySecret
	// mail
	Mail *Mail
	// avratio
	Ratio *TagConf
	// upincome
	Income *TagConf
	// http client
	HTTPClient *bm.ClientConfig
	// berserker client
	DPClient *bm.ClientConfig
	// Host
	Host *Host
	// bm
	BM *bm.ServerConfig
	// hbase
	HBase *HBaseConfig
	// databus
	ArchiveSub *databus.Config
	//
	Bubble *BubbleConfig
}

Config is project all config

type HBaseConfig

type HBaseConfig struct {
	*hbase.Config
	WriteTimeout time.Duration
	ReadTimeout  time.Duration
}

HBaseConfig for new hbase client.

type Host

type Host struct {
	Archive      string
	VideoType    string
	ColumnType   string
	DataPlatform string
	ColumnAct    string
	Profit       string
	VC           string
	Porder       string
	Archives     string
	API          string
}

Host is hosts

type KeySecret

type KeySecret struct {
	Key    string
	Secret string
}

KeySecret.

type Mail

type Mail struct {
	Host               string
	Port               int
	Username, Password string
	Send               []*MailAddr
}

Mail config

type MailAddr

type MailAddr struct {
	Type int
	Addr []string
}

MailAddr mail send addr.

type Mysql

type Mysql struct {
	Growup    *sql.Config
	Allowance *sql.Config
}

Mysql mysql config

type TagConf

type TagConf struct {
	Hour  int
	Sleep int64
	Num   int64
	Limit int64
}

TagConf tag config

Jump to

Keyboard shortcuts

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