Documentation ¶
Index ¶
Constants ¶
View Source
const (
ReqStrKey = "gin-gonic/gin/reqstr"
)
Variables ¶
View Source
var ( Name = "gin-framework" Version = "1.0.0" HttpServerDefaultAddr = "0.0.0.0:9010" LogDir = "/apps/logs/go/gin-framework" ErrorRobotToken = "" GracefulRobotToken = "" HttpServerAddr *string Engine *gin.Engine Logger *zap.Logger DebugStack bool RobotEnable bool TokenKey = "" )
View Source
var ( CacheRedis = &RedisClient{ Host: os.Getenv("redis_host"), Port: os.Getenv("redis_port"), Pwd: os.Getenv("redis_password"), Db: 0, } SessionRedis = &RedisClient{ Host: os.Getenv("redis_session_host"), Port: os.Getenv("redis_session_port"), Pwd: os.Getenv("redis_session_password"), Db: 0, } )
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 ¶
type RedisClientKey ¶
type RedisClientKey struct { Client map[string]RedisClient Key map[string]string }
Click to show internal directories.
Click to hide internal directories.