Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( HttpServerAddr *string Engine *gin.Engine Logger *zap.Logger RobotEnable bool Name = "zgin" Version = "0.0.0" HttpServerDefaultAddr = "0.0.0.0:9010" LogDir = "/apps/logs/go/zgin" ErrorRobotToken = "" GracefulRobotToken = "" TokenKey = "" SignTimeExpiration int64 = 60 DevModeSign = "hxs-gin-dev" LogMaxTimeout = 3 * time.Second SendMaxTimeout = 5 * time.Second HttpServerShutDownTimeout = 15 * time.Second HttpServerWaitTimeout = 10 * time.Second )
View Source
var Session = &SessionConfig{ TokenKey: "gin-gonic/gin/sesstoken", DataKey: "gin-gonic/gin/sessdata", LoggedUidKey: "gin-gonic/gin/loggeduserid", UpdateDuration: 5 * time.Minute, Expiration: 6 * 30 * 86400, }
Functions ¶
This section is empty.
Types ¶
type MysqlDialect ¶
type MysqlDialect struct {
User, Pwd, Host, Port, Db string
}
type RedisClient ¶
Click to show internal directories.
Click to hide internal directories.