middleware

package
v0.0.0-...-3e96b9e Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2026 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ApiInterfaceInfoList []ApiInterfaceInfo

Functions

func JWTTokenAdapter

func JWTTokenAdapter() echo.MiddlewareFunc

JWTTokenAdapter is a `echo` middleware, by rewriting the header, the jwt token support header "Authorization: {token}" and "Authorization: Bearer {token}".

func LicenseAdapter

func LicenseAdapter(l *biz.LicenseUsecase) echo.MiddlewareFunc

func OperationRecordMiddleware

func OperationRecordMiddleware(_ *service.DMSService) echo.MiddlewareFunc

Types

type ApiInterfaceInfo

type ApiInterfaceInfo struct {
	RouterPath               string
	Method                   string
	OperationType            string
	OperationAction          string
	GetProjectAndContentFunc func(c echo.Context, dms interface{}) (projectName string, content i18nPkg.I18nStr, err error)
}

Jump to

Keyboard shortcuts

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