global

package
v0.0.0-...-ac56343 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Config = struct {
	// 系统
	ListenHost  string
	ListenPort  int32
	ApiRootPath string
	// 数据库
	DbHost string
	DbPort int32
	DbUser string
	DbPwd  string
	DbName string
	// 日志
	IsSaveLog bool
	LogPath   string
	LogLevel  logrus.Level
	// 基础验证
	VerifyCode string
	// 统计天数
	ChartDay int64
}{
	ListenHost: "127.0.0.1",
	ListenPort: 8002,
	DbHost:     "127.0.0.1",
	DbPort:     3306,
	DbUser:     "root",
	DbPwd:      "test123",
	DbName:     "wow_hong",
	IsSaveLog:  true,
	LogPath:    "./logs/log.txt",
	LogLevel:   logrus.DebugLevel,
	VerifyCode: "testcode",
	ChartDay:   20,
}
View Source
var (
	Log *logrus.Logger
)

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