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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ConfPath str
	ConfPath string
	// Conf cfg
	Conf = &Config{}
)

Functions

func Init

func Init() (err error)

Init init

Types

type Bfs

type Bfs struct {
	Timeout     time.Duration
	MaxFileSize int
}

Bfs bfs config

type Config

type Config struct {
	AppEditorInfoc *infoc.Config
	// base
	Bfs   *Bfs
	Limit *Limit
	// db
	DB *DB
	// tick
	Tick time.Duration
	// app
	App *bm.App
	// host
	Host *Host
	// http
	HTTPClient *HTTPClient
	// xlog
	Xlog *xlog.Config
	// tracer
	Tracer *trace.Config
	// ecode
	Ecode *ecode.Config
	// rpc client
	RelationRPC *rpc.ClientConfig
	SubRPC      *rpc.ClientConfig
	// mc
	Memcache *Memcache
	// redis
	Redis       *Redis
	UpCoverAnti *antispam.Config
	Game        *Game
	BM          *bm.ServerConfig
	// geetest
	Geetest             *Geetest
	MaxAllVsCnt         int
	MaxAddVsCnt         int
	UgcPayAllowEditDays int
	AccClient           *warden.ClientConfig
	UpClient            *warden.ClientConfig
}

Config struct

type DB

type DB struct {
	// archive db
	Manager *sql.Config
}

DB conf.

type Game

type Game struct {
	OpenHost string
	App      *bm.App
}

Game str Conf

type Geetest

type Geetest struct {
	CaptchaID   string
	MCaptchaID  string
	PrivateKEY  string
	MPrivateKEY string
}

Geetest geetest id & key

type HTTPClient

type HTTPClient struct {
	Read     *bm.ClientConfig
	Write    *bm.ClientConfig
	UpMng    *bm.ClientConfig
	FastRead *bm.ClientConfig
	Chaodian *bm.ClientConfig
}

HTTPClient str

type Host

type Host struct {
	Account    string
	Archive    string
	APICo      string
	WWW        string
	Member     string
	UpMng      string
	Tag        string
	Elec       string
	Geetest    string
	Dynamic    string
	MainSearch string
	Chaodian   string //超电
}

Host conf

type Limit

type Limit struct {
	AddBasicExp time.Duration
}

Limit config

type Memcache

type Memcache struct {
	Account *struct {
		*memcache.Config
		SubmitExpire time.Duration
	}
}

Memcache str

type Redis

type Redis struct {
	Videoup *struct {
		*redis.Config
		Expire time.Duration
	}
}

Redis str

Jump to

Keyboard shortcuts

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