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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// Conf config
	Conf = &Config{}
)

global var

Functions

func Init

func Init() error

Init init conf

Types

type Bfs

type Bfs struct {
	Key         string
	Secret      string
	Host        string
	Timeout     int
	MaxFileSize int
}

Bfs reprensents the bfs config

type Config

type Config struct {
	// base
	// elk
	Log *log.Config
	// mc
	Memcache *Memcache
	// auth
	Auth *permit.Config
	// MultiHTTP
	BM *bm.ServerConfig
	// http client
	HTTPClient *bm.ClientConfig
	// tracer
	Tracer *trace.Config
	// MySQL
	MySQL *sql.Config
	ORM   *ORM
	// VipRPC
	VipRPC *rpc.ClientConfig
	// business config
	Property *Property
	// ecode
	Ecode *ecode.Config
	// pay conf
	PayConf *PayConf
	// bfs
	Bfs *Bfs
}

Config config set

type Memcache

type Memcache struct {
	*memcache.Config
	Expire time.Duration
}

Memcache .

type ORM

type ORM struct {
	Vip *orm.Config
}

ORM .

type PayConf

type PayConf struct {
	BaseURL        string
	CustomerID     int64
	Token          string
	OrderNotifyURL string
	SignNotifyURL  string
	RefundURL      string
	PlanID         int32
	ProductID      string
	Version        string
	ReturnURL      string
}

PayConf pay config

type Property

type Property struct {
	MsgURI                         string
	PayURI                         string
	AnnualVipBcoinDay              int
	AnnualVipBcoinCouponMoney      int
	AnnualVipBcoinCouponActivityID int
	WelfareBgHost                  string
}

Property .

Jump to

Keyboard shortcuts

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