Documentation ¶
Index ¶
Constants ¶
View Source
const ( DEBUG = iota RELEASE )
View Source
const ( RunMode = DEBUG // RELEASE LogLevel = "DEBUG" DefaultLogName = "application" DefaultSecret = "156RFT$%Aasa" DefaultTokenExpireOfDay = 15 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Setting ¶
type Setting struct { InitDB bool `json:"initDB" default:"false" usage:"if init db from database/sql file, default not init"` RunMode int `json:"runMode" default:"0" usage:"the run mode, default is debug 0, you can change release as 1"` DBType string `json:"dbType" default:"sqlite3" usage:"indicate which db engine will use, optional mysql or sqllite, default is sqllite"` DBUrl string `json:"dbUrl" default:"test.db" usage:"the contect url of db, default use sqlite with test.db in current path"` }
Click to show internal directories.
Click to hide internal directories.