middleware

package
v1.0.41 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInternal = apperr.NewMethod("", "all").
	WithTitleTranslate(apperr.Translate{"ru": "Ошибка"})

Functions

func GinRequestBodyLogMiddleware

func GinRequestBodyLogMiddleware(module string, stdout bool) gin.HandlerFunc

func GinResponseBodyLogMiddleware

func GinResponseBodyLogMiddleware(module string, stdout bool) gin.HandlerFunc

Types

type ITransaction

type ITransaction interface {
	DBTransactionMiddleware() gin.HandlerFunc
}

type Transaction

type Transaction struct {
	DB *gorm.DB
}

func NewTr

func NewTr(db *gorm.DB) *Transaction

func (*Transaction) DBTransactionMiddleware

func (tr *Transaction) DBTransactionMiddleware() gin.HandlerFunc

Jump to

Keyboard shortcuts

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