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

Documentation

Index

Constants

This section is empty.

Variables

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

Functions

func Init

func Init() error

Init init config

Types

type BASECenter

type BASECenter struct {
	AppID    string
	AppToken string
	URL      string
}

BASECenter config

type Config

type Config struct {
	// base
	// 数据库配置
	DB *DB
	// redis
	Redis *Redis
	// http client
	HTTPClient HTTPClient
	// http
	BM *HTTPServers
	// grpc server
	RPCServer *warden.ServerConfig
	// log
	Log *log.Config

	// auth
	Auth   *auth.Config
	Verify *verify.Config

	// orm
	ORM *orm.Config
	// UT
	UT *UT
	// URL
	URL *URL
	// BASECenter
	BASECenter *BASECenter
	// Tag
	Tag *Tag
}

Config config struct

type DB

type DB struct {
	Master *sql.Config
}

DB config

type HTTPClient

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

HTTPClient config

type HTTPServers

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

HTTPServers Http Servers

type Redis

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

Redis config

type Tag

type Tag struct {
	Tags string
}

Tag config

type URL

type URL struct {
	ElasticHost string
	DefaultHead string
}

URL external resources

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