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 Config

type Config struct {
	// base
	// log
	Xlog *log.Config
	//Tracer *conf.Tracer
	Tracer *trace.Config
	// Verify
	Verify *verify.Config
	// BM
	BM *blademaster.ServerConfig
	// http client
	HTTPClient *blademaster.ClientConfig
	// memcache
	Memcache *memcache.Config
	// url router map
	Dispatcher *Dispatcher
	// RPCServer rpc server
	RPCServer *rpc.ServerConfig
	// grpc server
	WardenServer *warden.ServerConfig
	// passport
	Passport *PassportConfig
}

Config struct of conf.

type Dispatcher

type Dispatcher struct {
	Name        string
	Oauth       map[string]string
	RenewToken  map[string]string
	RegionInfos []*model.RegionInfo
}

Dispatcher router map

type PassportConfig

type PassportConfig struct {
	Host map[string]string
}

PassportConfig identify config

Jump to

Keyboard shortcuts

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