initialize

package
v0.0.0-...-6b90055 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2024 License: Apache-2.0 Imports: 41 Imported by: 0

Documentation

Index

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 Gorm

func Gorm()

Gorm 初始化数据库并产生数据库全局变量 Author SliverHorn

func InitConfigByContent

func InitConfigByContent(content string) error

InitConfigByFile 读取配置文件

func InitConfigByFile

func InitConfigByFile(path ...string)

InitConfigByFile 读取配置文件

func JwtToken

func JwtToken()

func NewWriter

func NewWriter(w logger.Writer) *gormWriter

NewWriter gormWriter 构造函数 Author [SliverHorn](https://github.com/SliverHorn)

func Open

func Open(cfg properties.Mysql) *gorm.DB

func OtherInit

func OtherInit()

func RBAC

func RBAC()

func RabbitMq

func RabbitMq()

订阅消息

func Redis

func Redis()

func RegisterTables

func RegisterTables(db *gorm.DB)

RegisterTables 注册数据库表专用

func Routers

func Routers() *gin.Engine

初始化总路由

func RunWindowsServer

func RunWindowsServer()

func SubscribeMessage

func SubscribeMessage()

func Upload

func Upload()

func Zap

func Zap()

Zap 获取 zap.Logger

Types

This section is empty.

Jump to

Keyboard shortcuts

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