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 = &Config{}
)

Conf global variable.

Functions

func Init

func Init() (err error)

Init create config instance.

Types

type Config

type Config struct {
	Log        *log.Config
	Tracer     *trace.Config
	Databus    *databus.Config
	SmsGRPC    *warden.ClientConfig
	HTTPClient *bm.ClientConfig
	HTTPServer *bm.ServerConfig
	UserReport *databus.Config
	Wechat     *wechat
	Provider   *Provider
	Speedup    *speedup
	Sms        *sms
}

Config struct of conf.

type Provider

type Provider struct {
	Providers []int32
	// meng wang
	MengWangSmsURL          string
	MengWangSmsUser         string
	MengWangSmsPwd          string
	MengWangActURL          string
	MengWangBatchURL        string
	MengWangActUser         string
	MengWangActPwd          string
	MengWangInternationURL  string
	MengWangInternationUser string
	MengWangInternationPwd  string
	// chaung lan
	ChuangLanSmsURL          string
	ChuangLanSmsUser         string
	ChuangLanSmsPwd          string
	ChuangLanActURL          string
	ChuangLanActUser         string
	ChuangLanActPwd          string
	ChuangLanInternationURL  string
	ChuangLanInternationUser string
	ChuangLanInternationPwd  string
	// chuang lan callback
	ChuangLanSmsCallbackURL           string
	ChuangLanActCallbackURL           string
	ChuangLanInternationalCallbackURL string
	// meng wang callback
	MengWangSmsCallbackURL           string
	MengWangActCallbackURL           string
	MengWangInternationalCallbackURL string
}

Provider provider conf

Jump to

Keyboard shortcuts

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