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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Conf = &Config{}
)

Conf global variable.

Functions

func Init

func Init() error

Init int config

func RsaPriv

func RsaPriv() (key string)

RsaPriv is realname rsa priv key

func RsaPub

func RsaPub() (key string)

RsaPub is realname rsa pub key

Types

type BlockCacheTTL

type BlockCacheTTL struct {
	UserTTL     time.Duration
	UserMaxRate float64
	UserT       float64
}

BlockCacheTTL is

type BlockProperty

type BlockProperty struct {
	MSGURL    string
	WhiteList []int64
}

BlockProperty .

type CacheTTL

type CacheTTL struct {
	BaseTTL            time.Duration
	MoralTTL           time.Duration
	CaptureTimesTTL    time.Duration
	CaptureCodeTTL     time.Duration
	CaptureErrTimesTTL time.Duration
	ApplyInfoTTL       time.Duration
}

CacheTTL cache live time.

type Config

type Config struct {
	Log           *log.Config
	BM            *bm.ServerConfig
	HTTPClient    *bm.ClientConfig
	RPCServer     *rpc.ServerConfig
	WardenServer  *warden.ServerConfig
	AccMysql      *sql.Config
	Mysql         *sql.Config
	Memcache      *memcache.Config
	CacheTTL      *CacheTTL
	Tracer        *trace.Config
	Databus       *databus.Config
	Redis         *redis.Config
	AccountNotify *databus.Config
	ReportUser    *databus.Config
	ReportManager *databus.Config
	Host          *Host
	Verify        *v.Config
	// realname
	RealnameProperty *RealnameProperty
	// block
	BlockMySQL    *sql.Config
	BlockMemcache *memcache.Config
	BlockProperty *BlockProperty
	BlockCacheTTL *BlockCacheTTL
}

Config struct of conf.

type Host

type Host struct {
	Search string
}

Host is

type RealnameProperty

type RealnameProperty struct {
	IMGURLTemplate string
}

RealnameProperty .

Jump to

Keyboard shortcuts

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