goutil

package module
v1.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 28, 2020 License: MIT Imports: 14 Imported by: 0

README

goutil

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Config *sysConfig
View Source
var Logger *zap.Logger

Functions

func GetConfigInstance

func GetConfigInstance(path string) *sysConfig

func GetMysqlDB

func GetMysqlDB() *gorm.DB

func GetMysqlDB2 added in v1.3.0

func GetMysqlDB2() *gorm.DB

func InitZapLog

func InitZapLog(fileName string, maxSize int, maxBackups int, maxAge int, serviceName string)

func OpenMysqlDB

func OpenMysqlDB(maxOpenConn int, maxIdleConn int, dbParameters ...string)

func OpenMysqlDB2 added in v1.3.0

func OpenMysqlDB2(maxOpenConn int, maxIdleConn int, dbParameters ...string)

https://www.kancloud.cn/sliver_horn/gorm/1861152 以下基于gorm2

func RepoJson

func RepoJson(code int, data interface{}, message string, ctx iris.Context)

* 响应Json

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL