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 = &Config{}
)

global var

Functions

func Init

func Init() error

Init init conf

Types

type Config

type Config struct {
	// base
	// elk
	Log *log.Config
	// App
	App *bm.App
	// rpc server2
	RPCServer2 *rpc.ServerConfig
	// tracer
	Tracer *trace.Config
	// bm
	BM *bm.ServerConfig
	// Ecode
	Ecode *ecode.Config
	// rpc
	FavoriteRPC *rpc.ClientConfig
	// grpc
	ArcClient *warden.ClientConfig
	// Mysql
	Mysql *sql.Config
	// Redis
	Redis *Redis
	// HTTP client
	HTTPClient *bm.ClientConfig
	// Host
	Host *Host
	// Auth
	Auth *auth.Config
	// verify
	Verify *verify.Config
	// reload
	Rule *Rule
	// leidata
	Leidata *Leidata
}

Config config set

type Host

type Host struct {
	Search string
}

Host hosts.

type Leidata

type Leidata struct {
	Timeout         time.Duration
	AfterSleep      time.Duration
	EndSleep        time.Duration
	Retry           int
	URL             string
	Key             string
	LolPlayersCron  string
	DotaPlayersCron string
	InfoCron        string
}

Leidata lei da data .

type Redis

type Redis struct {
	*redis.Config
	FilterExpire time.Duration
	ListExpire   time.Duration
}

Redis redis struct

type Rule

type Rule struct {
	KnockTree time.Duration
}

Rule rule .

Jump to

Keyboard shortcuts

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