Documentation ¶
Index ¶
- Constants
- Variables
- func DB() *gorm.DB
- func Db(name string) *gorm.DB
- func Dbs() map[string]*gorm.DB
- func GetEngine() http.Handler
- func GetGinEngine() *gin.Engine
- func GetGromLogCfg(logMode logger.LogLevel, prefix string, slowThreshold int, ...) *gorm.Config
- func Init()
- func Run()
- func SetDb(key string, db *gorm.DB)
- func SetEngine(aEngine http.Handler)
- type DBType
- type IServer
- type Mode
Constants ¶
Variables ¶
View Source
var ( Cfg config.AppCfg Cache cache.ICache RedisLock *locker.Redis Started = make(chan byte, 1) ToClose = make(chan byte, 1) )
View Source
var Version = "V0.0.1"
Functions ¶
func GetGinEngine ¶
func GetGromLogCfg ¶
Types ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.