conf

package
v0.0.0-...-26b160e Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// log conf
	LoggerFlag    = "os"
	LogOutPutPath = "/dev/stdout"

	//database conf
	OrmMaxIdleConn = 30
	OrmMaxOpen     = 50
	OrmCacheTime   = Hour
	OrmCacheCount  = 1024 * 1024
)

for log conf.. conf written in go...

View Source
var AppConf struct {
	//logger..
	LogLevel int32  `json:"LogLevel"`
	LogPath  string `json:"LogPath"`

	// srv set..
	SrvName    string `json:"SrvName"`
	VersionTag int    `json:"Version"`

	// Todo:
	SetId int `json:"GlobalSetId"`
}
View Source
var OrmConf struct {
	DriverName string `json:"DriverName"`
	DataSource string `json:"DataSource"`
	MaxIdle    int    `json:"MaxIdle"`
	MaxOpen    int    `json:"MaxOpen"`
	DebugLog   bool   `json:"DebugLog"`
	IsProMode  bool   `json:"IsProMode"`

	// cache
	IsCached   bool          `json:"UseCache"`
	CacheTime  time.Duration `json:"CacheDuration"`
	CacheCount int           `json:"CacheRecordCount"`

	// if TableHashValue == 0, no table sharding..
	TableHashValue int `json:"TableHashValue"`

	//Todo:
	DatabaseHashValue int `json:"DbHashValue"`
}

struct define... var cc = make(map[string]string) //cache map OrmConf config as variable..

View Source
var SqlMap struct {
	OpenWatcher bool   `json:"FSWatcher"`
	XmlLocation string `json:"MapLocation"`
	XmlSuffix   string `json:"MapSuffix"`
}

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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