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

Functions

func Init

func Init() (err error)

Init init config.

Types

type Config

type Config struct {
	// interface Log
	Log *log.Config
	//HTTPClient
	HTTPClient *bm.ClientConfig
	// BM
	BM *bm.ServerConfig
	// rpc
	ArchiveRPC *rpc.ClientConfig
	ArticleRPC *rpc.ClientConfig
	CoinRPC    *rpc.ClientConfig
	ActRPC     *rpc.ClientConfig
	// grpc
	AccClient *warden.ClientConfig
	// DB
	MySQL *MySQL
	// mc
	Memcache *Memcache
	// redis
	Redis *Redis
	// databus
	ActSub *databus.Config
	BnjSub *databus.Config
	// vip binlog databus
	//VipSub *databus.Config
	KfcSub *databus.Config
	// Interval
	Interval *interval
	// Rule
	Rule *rule
	// Host
	Host *host
	// Elastic
	Elastic *elastic.Config
	// bnj
	Bnj2019 *bnj2019
}

Config so config

type Memcache

type Memcache struct {
	Like             *memcache.Config
	LikeExpire       time.Duration
	TimeFinishExpire time.Duration
	LessTimeExpire   time.Duration
}

Memcache config

type MySQL

type MySQL struct {
	Like *sql.Config
}

MySQL is db config.

type Redis

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

Redis config

Jump to

Keyboard shortcuts

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