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

Functions

func Init

func Init() error

Init int config

Types

type APP

type APP struct {
	Key    string
	Secret string
}

APP appkey and sec

type Config

type Config struct {
	NotifyURL string

	// base
	// log
	Xlog *log.Config
	// tracer
	Tracer *trace.Config
	// app
	App *APP
	// bm service
	BM *bm.ServerConfig
	// db
	Mysql *sql.Config
	// mecache
	Memcache     *Memcache
	PendantRedis *PendantRedis
	// http client
	HTTPClient *bm.ClientConfig
	PageSize   int64

	Properties *Properties
	SuitRPC    *rpc.ClientConfig

	Databus *Databus
}

Config struct of conf.

type Databus

type Databus struct {
	AccountNotify *databus.Config
	VipBinLog     *databus.Config
}

Databus .

type Memcache

type Memcache struct {
	*memcache.Config
}

Memcache define memcache conf.

type PendantRedis

type PendantRedis struct {
	*redis.Config
}

PendantRedis pendant redis

type Properties

type Properties struct {
	UpInfoURL string
	MedalCron string
}

Properties app config.

Jump to

Keyboard shortcuts

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