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 init Config struct.
	Conf = &Config{}
)

Functions

func Init

func Init() error

Init init conf

Types

type Bfs

type Bfs struct {
	Addr        string
	Bucket      string
	Key         string
	Secret      string
	MaxFileSize int
}

Bfs struct.

type Config

type Config struct {
	// Env
	Env string
	// tracer
	Tracer *trace.Config
	// xlog
	XLog *log.Config
	// http
	BM *HTTPServers
	// ecode
	Ecode *ecode.Config
	// db
	MySQL *MySQL
	// Bfs
	Bfs *Bfs
	// Feedback
	Feedback *Feedback
	// rpc
	LocationRPC *rpc.ClientConfig
}

Config struct.

type Feedback

type Feedback struct {
	ReplysNum      int
	MaxContentSize int
	ImgLimit       int
}

Feedback struct.

type HTTPServers

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

HTTPServers Http Servers

type MySQL

type MySQL struct {
	Master *sql.Config
}

MySQL struct.

Jump to

Keyboard shortcuts

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