helper

package
v0.0.0-...-b9f5497 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2017 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LogKeySource       string = "source"
	LogKeyTime         string = "time"
	LogKeyData         string = "data"
	LogKeyGoroutineNum string = "goroutineNum"

	TimeLocationName string = "Asia/Chongqing"

	DateShortLayout string = "2006-01-02"
	DateFullLayout  string = "2006-01-02 03:04:05"

	Line  string = "=============================="
	Line2 string = "==================================="

	JobEndTime = 1000*xtime.Day + 10*time.Millisecond

	SUCCESS_CODE_ZIROOM     = 200
	SUCCESS_CODE_HIZHU      = 200
	SUCCESS_CODE_XIANGYU    = 200
	SUCCESS_CODE_ANJUKE     = 200
	SUCCESS_CODE_QFANG      = 200
	SUCCESS_CODE_FANGDUODUO = 200
)

Variables

This section is empty.

Functions

func InitEnv

func InitEnv()

func IsEmpty

func IsEmpty(i interface{}) bool

func IsNotEmpty

func IsNotEmpty(i interface{}) bool

Types

type Env

type Env struct {
	DebugOn           bool
	DBDialect         string // db_dialect=mysql
	DBHost            string // db_host=127.0.0.1
	DBPort            int64  // db_port=3306
	DBName            string // db_name=forum
	DBUser            string // db_user=wangming
	DBPassword        string // db_password=bmbstack@123
	LogFilePathPrefix string // log_file_path_prefix=/var/log/cron-room-
}

func GetEnv

func GetEnv() *Env

Jump to

Keyboard shortcuts

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