Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func NamedMiddlewareAs ¶
func NamedMiddlewareAs[T Middleware](nmw NamedMiddleware) T
func RegisterMiddleware ¶
func RegisterMiddleware(name string, m Middleware) error
func ResetMiddlewares ¶
func ResetMiddlewares()
Types ¶
type Middleware ¶
type Middleware interface {
Handle(*fiber.Ctx) error
}
type NamedMiddleware ¶
type NamedMiddleware interface { Middleware Name() string }
func GetMiddleware ¶
func GetMiddleware(name string) (NamedMiddleware, error)
Click to show internal directories.
Click to hide internal directories.