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 global variable.

Functions

func Init

func Init() (err error)

Init create config instance.

Types

type BizConfig

type BizConfig struct {
	ExpiredBase   int32
	ExpiredDetail int32
	IsFree        bool
	AccprocCount  int32
	ExpprocCount  int32

	// realname alipay
	RealnameAlipayCheckTick  time.Duration
	RealnameAlipayCheckLimit int
	RealnameAlipayAppID      string
	RealnameAlipayGateway    string
}

BizConfig biz common config

type Config

type Config struct {
	// base
	// app
	App *bm.App
	Biz *BizConfig
	// Env
	Env string
	// goroutine sleep
	Tick time.Duration
	// log
	Xlog *log.Config
	// databus
	DataBus *databus.Config
	// databus
	AccDataBus *databus.Config
	// passport
	PassortDataBus *databus.Config
	// operate log.
	LogDatabus *databus.Config
	// operate log for publish
	PLogDatabus *databus.Config
	// add exp,pub by archive,history.
	ExpDatabus *databus.Config
	// login award ,pub by passport.
	LoginDatabus    *databus.Config
	AwardDatabus    *databus.Config
	RealnameDatabus *databus.Config
	// account notify to purge cache
	AccountNotify   *databus.Config
	ShareMidDatabus *databus.Config
	// mc
	Memcache *Memcache
	// httpClinet
	HTTPClient    *bm.ClientConfig
	Mysql         *sql.Config
	AccCheckMysql *sql.Config
	AccMysql      *sql.Config
	AsoMysql      *sql.Config
	PasslogMysql  *sql.Config
	// hbase
	// HBase *conf.HBase
	// redis
	Redis        *redis.Config
	Databusutil  *databusutil.Config
	On           bool
	FeatureGates *FeatureGates
	SyncRange    *SyncRange
	// bm
	BM *bm.ServerConfig
	// Report
	UserReport    *databus.Config
	ManagerReport *databus.Config

	//block config.
	BlockMemcache      *memcache.Config
	BlockDB            *sql.Config
	BlockCreditDatabus *databus.Config
	BlockProperty      *Property

	//realname
	RealnameRsaPriv        []byte
	RealnameAlipayPub      []byte
	RealnameAlipayBiliPriv []byte

	// Parsed Realname Infoc
	ParsedRealnameInfoc *infoc.Config
}

Config struct of conf.

type FeatureGates

type FeatureGates struct {
	DataFixer bool
	FaceCheck bool
}

FeatureGates is.

type MSG

type MSG struct {
	BlockRemove block.MSG
}

MSG .

type Memcache

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

Memcache memcache.

type Property

type Property struct {
	LimitExpireCheckLimit  int
	LimitExpireCheckTick   time.Duration
	CreditExpireCheckLimit int
	CreditExpireCheckTick  time.Duration
	MSGURL                 string
	MSG                    *MSG
	Flag                   *struct {
		ExpireCheck bool
		CreditSub   bool
	}
}

Property .

type SyncRange

type SyncRange struct {
	Start int64
	End   int64
}

SyncRange syncRange.

Jump to

Keyboard shortcuts

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