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 (

	// Conf config
	Conf = &Config{}
)

Functions

func Init

func Init() error

Init init conf

Types

type Biz

type Biz struct {
	RunCASTimes    int64
	AccountUserMin int64
	Cron           *struct {
		TaskDailyBill     string
		TaskAccountUser   string
		TaskAccountBiz    string
		TaskMonthlyBill   string
		TaskRechargeShell string
	}
	Tax *struct {
		AssetRate float64
	}
	Pay struct {
		ID                  string
		Token               string
		CheckOrderURL       string
		CheckRefundOrderURL string
		RechargeShellURL    string
		RechargeCallbackURL string
		OrderQueryURL       string
	}
	Task *struct {
		DailyBillPrefix     string
		DailyBillOffset     int
		AccountUserPrefix   string
		AccountBizPrefix    string
		MonthBillPrefix     string
		MonthBillOffset     int
		RechargeShellPrefix string
		RechargeShellOffset int
	}
}

Biz .

type CacheTTL

type CacheTTL struct {
	ElecOrderIDTTL int32
}

CacheTTL .

type Config

type Config struct {
	Log            *log.Config
	BM             *bm.ServerConfig
	Redis          *redis.Config
	Memcache       *memcache.Config
	MemcacheRank   *memcache.Config
	MySQL          *sql.Config
	MySQLRank      *sql.Config
	MySQLRankOld   *sql.Config
	GRPCUGCPayRank *warden.ClientConfig
	Ecode          *ecode.Config
	BinlogMQ       *databus.Config
	ElecBinlogMQ   *databus.Config
	CacheTTL       *CacheTTL
	Biz            *Biz
}

Config .

Jump to

Keyboard shortcuts

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