mw

package
v2.3.24 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CorsHandler

func CorsHandler() gin.HandlerFunc

func GinBodyLogMiddleware added in v2.0.4

func GinBodyLogMiddleware(module, debug string) gin.HandlerFunc

func GinParseOperationID

func GinParseOperationID() gin.HandlerFunc

func LogHandler added in v2.0.4

func LogHandler(moduleID, debug string) gin.LoggerConfig

Types

type ITransaction added in v2.0.4

type ITransaction interface {
	DBTransaction(c *gin.Context)
}

type Transaction added in v2.0.4

type Transaction struct {
	DB *gorm.DB
}

func NewTransaction added in v2.0.4

func NewTransaction(db *gorm.DB) *Transaction

func (*Transaction) DBTransaction added in v2.0.4

func (tr *Transaction) DBTransaction(c *gin.Context)

Jump to

Keyboard shortcuts

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