middleware

package
v0.0.0-...-033c7d0 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2024 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthMiddleware

func AuthMiddleware() fiber.Handler

AuthMiddleware jwt authentication middleware

func CacheMiddleware

func CacheMiddleware() fiber.Handler

CacheMiddleware http cache middleware

func CasbinMiddleware

func CasbinMiddleware(db *gorm.DB, prefix, tableName string) fiber.Handler

CasbinMiddleware casbin middleware

func LoggerMiddleware

func LoggerMiddleware() fiber.Handler

LoggerMiddleware ...

func ParamsActMatchFunc

func ParamsActMatchFunc(args ...interface{}) (interface{}, error)

ParamsActMatchFunc 自定义规则函数 method

func ParamsObjMatchFunc

func ParamsObjMatchFunc(args ...interface{}) (interface{}, error)

ParamsObjMatchFunc 自定义规则函数 path

func WhiteIpMiddleware

func WhiteIpMiddleware() fiber.Handler

WhiteIpMiddleware white list middleware

Types

This section is empty.

Jump to

Keyboard shortcuts

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