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: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// Conf config
	Conf = &Config{}
)

Functions

func Init

func Init() error

Init init conf

Types

type Bfs

type Bfs struct {
	Key         string
	Secret      string
	Host        string
	Timeout     int
	MaxFileSize int
}

Bfs reprensents the bfs config

type Config

type Config struct {
	Log      *log.Config
	BM       *bm.ServerConfig
	Verify   *verify.Config
	Auth     *permit.Config
	Tracer   *trace.Config
	Redis    *Redis
	Memcache *memcache.Config

	Ecode *ecode.Config
	RPC   *RPC
	Host  *Host
	// http client test
	HTTPClient HTTPClient
	// ORM
	ORM      *orm.Config
	MySQL    *sql.Config
	AegisPub *databus.Config
	Bfs      *Bfs

	Bucket   string
	Debug    string
	Admin    string // 所有业务的管理员
	Consumer *Consumer
	Gray     *Gray

	Auditstate map[string]string

	GRPC *GRPC
}

Config .

type Consumer

type Consumer struct {
	OnExp   int32
	RoleExp int32
}

Consumer 在线过期时间,角色过期时间

type DB

type DB struct {
	Aegis *sql.Config
	MySQL *sql.Config
}

DB .

type GRPC

type GRPC struct {
	AccRPC *warden.ClientConfig
	UpRPC  *warden.ClientConfig
}

GRPC .

type Gray

type Gray struct {
	Biz []graybiz
}

Gray .

type HTTPClient

type HTTPClient struct {
	Read  *bm.ClientConfig
	Write *bm.ClientConfig
	Es    *bm.ClientConfig
}

HTTPClient str

type Host

type Host struct {
	API        string
	Manager    string
	MainSearch string
}

Host host config .

type RPC

type RPC struct {
	Acc *rpc.ClientConfig
	Rel *rpc.ClientConfig
	Up  *rpc.ClientConfig
}

RPC .

type Redis

type Redis struct {
	NetExpire xtime.Duration
	Cluster   *redis.Config
}

Redis .

Jump to

Keyboard shortcuts

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