conf

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 17, 2019 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ApiHttpConf struct {
	GoHttpHost string
	GoHttpPort string
}
View Source
var BaseConf struct {
	Hostname string
	Username string

	PrjName string
	IsDev   bool
	Idc     string

	TmpRoot    string
	ApiPidFile string
}
View Source
var LogConf struct {
	RootPath                    string
	Level                       int
	MaxAsyncMsgNum              int
	MaxBufferNum                int
	Bufsize                     int
	BufferAutoFlushTimeInterval time.Duration
}
View Source
var MongoConf struct {
	Host                  string
	User                  string
	Pass                  string
	Port                  string
	Name                  string
	RWTimeout             time.Duration
	PoolSize              int
	PoolClientMaxIdleTime time.Duration
}
View Source
var MysqlConf struct {
	Host                  string
	User                  string
	Pass                  string
	Port                  string
	Name                  string
	RWTimeout             time.Duration
	PoolSize              int
	PoolClientMaxIdleTime time.Duration
}
View Source
var PprofConf struct {
	Enable bool
	Port   string
}
View Source
var PrjHome string
View Source
var RedisConf struct {
	Host                  string
	Pass                  string
	Port                  string
	RWTimeout             time.Duration
	PoolSize              int
	PoolKeepAliveInterval time.Duration
	PoolClientMaxIdleTime time.Duration
}

Functions

func Init

func Init(prjHome string) *exception.Exception

Types

This section is empty.

Jump to

Keyboard shortcuts

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