Documentation ¶
Index ¶
- Constants
- func FileWithLineNum() string
- func Gorm()
- func InitConfigByContent(content string) error
- func InitConfigByFile(path ...string)
- func JwtToken()
- func NewWriter(w logger.Writer) *gormWriter
- func Open(cfg properties.Mysql) *gorm.DB
- func OtherInit()
- func RBAC()
- func RabbitMq()
- func Redis()
- func RegisterTables(db *gorm.DB)
- func Routers() *gin.Engine
- func RunWindowsServer()
- func SubscribeMessage()
- func Upload()
- func Zap()
Constants ¶
View Source
const ( // email交换机 EMAIL_EXCHANGE = "email_exchange" // email队列 EMAIL_QUEUE = "email_queue" )
Variables ¶
This section is empty.
Functions ¶
func FileWithLineNum ¶
func FileWithLineNum() string
拦截打印行号,过滤gen和gorm的行号 FileWithLineNum return the file name and line number of the current file
func NewWriter ¶
NewWriter gormWriter 构造函数 Author [SliverHorn](https://github.com/SliverHorn)
func RunWindowsServer ¶
func RunWindowsServer()
func SubscribeMessage ¶
func SubscribeMessage()
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.