Versions in this module Expand all Collapse all v0 v0.1.2 Aug 20, 2018 Changes in this version + func CloseRedisClient() error + func OnAppStart(f func(), order ...int) + func OnAppStop(f func(), order ...int) + func Run() + type JWTClaims struct + Cellphone string + Email string + UserId int64 + Username string + func (claims JWTClaims) Valid() error + type MySQLTemplate struct + func GetMySQLTemplate() *MySQLTemplate + func (t *MySQLTemplate) Close() error + func (t *MySQLTemplate) DeleteByNonEmptyFields(bean interface{}) (int64, error) + func (t *MySQLTemplate) GetById(id int64, bean interface{}) interface{} + func (t *MySQLTemplate) GetByNonEmptyFields(bean interface{}) interface{} + func (t *MySQLTemplate) Insert(bean interface{}) (int64, error) + func (t *MySQLTemplate) XormEngine() *xorm.Engine + type ShutdownHook struct + type ShutdownHooks []ShutdownHook + func (slice ShutdownHooks) Len() int + func (slice ShutdownHooks) Less(i, j int) bool + func (slice ShutdownHooks) Swap(i, j int) + type StartupHook struct + type StartupHooks []StartupHook + func (slice StartupHooks) Len() int + func (slice StartupHooks) Less(i, j int) bool + func (slice StartupHooks) Swap(i, j int) v0.1.1 May 14, 2017 Changes in this version + func Assets() *rice.Box + func ConnectToMySQL(config *Config) + func ConnectToRedis(config *Config) + func FindById(id int64, bean interface{}) interface + func GetAppConfBytes() []byte + func GetLogConfBytes() []byte + func GetRedisClient() *redis.Client + func GetXormEngine() *xorm.Engine + func Insert(bean interface{}) (int64, error) + type Config struct + MySQLConf struct{ ... } + RedisConf struct{ ... } + ServerConf struct{ ... } + func LoadConfig() *Config