Documentation
¶
Index ¶
- Variables
- func GetConfigInstance(path string) *sysConfig
- func GetMysqlDB() *gorm.DB
- func GetMysqlDB2() *gorm.DB
- func InitZapLog(fileName string, maxSize int, maxBackups int, maxAge int, serviceName string)
- func OpenMysqlDB(maxOpenConn int, maxIdleConn int, dbParameters ...string)
- func OpenMysqlDB2(maxOpenConn int, maxIdleConn int, dbParameters ...string)
- func RepoJson(code int, data interface{}, message string, ctx iris.Context)
Constants ¶
This section is empty.
Variables ¶
View Source
var Config *sysConfig
View Source
var Log *zap.SugaredLogger
View Source
var Logger *zap.Logger
Functions ¶
func GetConfigInstance ¶
func GetConfigInstance(path string) *sysConfig
func GetMysqlDB ¶
func GetMysqlDB2 ¶ added in v1.3.0
func InitZapLog ¶
func OpenMysqlDB ¶
func OpenMysqlDB2 ¶ added in v1.3.0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.