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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Conf = &Config{}
)

Functions

func Init

func Init() (err error)

Init init config.

Types

type App

type App struct {
	Key    string
	Secret string
}

App bilibili intranet authorization.

type Config

type Config struct {
	// Env
	Env string
	// db
	MySQL *MySQL
	// show  XLog
	Log *log.Config
	// tracer
	Tracer *trace.Config
	// tick time
	Tick xtime.Duration
	// httpClinet
	HTTPClient *bm.ClientConfig
	// HTTPTelecom
	HTTPTelecom *bm.ClientConfig
	// HTTPBroadband
	HTTPBroadband *bm.ClientConfig
	// HTTPUnicom
	HTTPUnicom *bm.ClientConfig
	// HTTPUnicom
	HTTPActive *bm.ClientConfig
	// bm http
	BM *HTTPServers
	// rpc account
	AccountRPC *rpc.ClientConfig
	// seq
	SeqRPC *rpc.ClientConfig
	// host
	Host *Host
	// ecode
	Ecode *ecode.Config
	// Report
	Report *databus.Config
	// iplimit
	IPLimit *IPLimit
	// infoc2
	UnicomUserInfoc2 *infoc.Config
	UnicomIpInfoc2   *infoc.Config
	UnicomPackInfoc  *infoc.Config
	// Seq
	Seq *Seq
	// Telecom
	Telecom *Telecom
	// Redis
	Redis *Redis
	// mc
	Memcache *Memcache
	// reddot
	Reddot *Reddot
	// unicom
	Unicom *Unicom
	ES     *elastic.Config
	// databus
	UnicomDatabus *databus.Config
}

type HTTPServers

type HTTPServers struct {
	Outer *bm.ServerConfig
}

type Host

type Host struct {
	APICo               string
	Dotin               string
	Live                string
	APILive             string
	Telecom             string
	Unicom              string
	UnicomFlow          string
	Broadband           string
	Sms                 string
	Mall                string
	TelecomReturnURL    string
	TelecomCancelPayURL string
}

type IPLimit

type IPLimit struct {
	MobileIPFile string
	Addrs        map[string][]string
}

type Memcache

type Memcache struct {
	Operator *struct {
		*memcache.Config
		Expire xtime.Duration
	}
}

type MySQL

type MySQL struct {
	Show *sql.Config
}

type Reddot

type Reddot struct {
	StartTime string
	EndTime   string
}

type Redis

type Redis struct {
	Recommend *struct {
		*redis.Config
		Expire xtime.Duration
	}
}

type Seq

type Seq struct {
	BusinessID int64
	Token      string
}

type Telecom

type Telecom struct {
	KeyExpired         xtime.Duration
	PayKeyExpired      xtime.Duration
	SMSTemplate        string
	SMSMsgTemplate     string
	SMSFlowTemplate    string
	SMSOrderTemplateOK string
	FlowPercentage     int
	Area               map[string][]string
}

type Unicom

type Unicom struct {
	KeyExpired xtime.Duration
	FlowWait   xtime.Duration
}

Jump to

Keyboard shortcuts

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