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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Conf common conf
	Conf = &Config{}
)

Functions

This section is empty.

Types

type BaseCenter

type BaseCenter struct {
	AppID string
	Token string
}

BaseCenter 的配置

type Config

type Config struct {
	//数据库配置
	DB *DB
	// redis
	Redis *Redis
	// http client
	HTTPClient HTTPClient
	// http
	BM *blademaster.ServerConfig
	// tracer
	Tracer *trace.Config
	// log
	Log *log.Config
	// UT
	UT         *UT
	GRPCClient map[string]*warden.ClientConfig
	Encrypt    *encoding.EncryptConfig
	URLs       map[string]string
	//basecenter配置
	BaseCenter *BaseCenter
	Databus    map[string]*databus.Config

	TestProject *TestProject
}

Config config struct

func (*Config) Set

func (c *Config) Set(text string) error

Set set config and decode.

type DB

type DB struct {
	Master *sql.Config
}

DB config

type HTTPClient

type HTTPClient struct {
	Read  *blademaster.ClientConfig
	Write *blademaster.ClientConfig
}

HTTPClient config

type HTTPServers

type HTTPServers struct {
	Inner *blademaster.ServerConfig
	Local *blademaster.ServerConfig
}

HTTPServers Http Servers

type Redis

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

Redis config

type TestProject

type TestProject struct {
	IDs        []int64
	CheckQuery string
}

TestProject 测试项目配置

type UT

type UT struct {
	DistPrefix string
}

UT config

Jump to

Keyboard shortcuts

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