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

Types

type BFS

type BFS struct {
	Bucket string
	Key    string
	Secret string
}

BFS bfs config

type Config

type Config struct {
	// base
	// log
	Log *log.Config
	// tracer
	Tracer *trace.Config
	// http
	BM *bm.ServerConfig
	// Auth auth
	Auth *permit.Config
	// MySQL mysql
	DB *DB
	// BFS
	BFS *BFS
	// redis
	Redis *redis.Config
	// memcache
	Memcache *Memcache
	// AccountGRPC account grpc
	AccountGRPC *warden.ClientConfig
	// http client
	HTTPClient *bm.ClientConfig
	// databus
	AccountNotify *databus.Config
	// host
	Host *Host
	// ecodes
	Ecode *ecode.Config
}

Config struct of conf.

type DB

type DB struct {
	Usersuit *sql.Config
}

DB .

type Host

type Host struct {
	Bfs     string
	Msg     string
	Manager string
}

Host host config .

type Memcache

type Memcache struct {
	*memcache.Config
	Expire      time.Duration
	PointExpire time.Duration
}

Memcache config.

Jump to

Keyboard shortcuts

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