You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
602 B
25 lines
602 B
1 year ago
|
package middleware
|
||
|
|
||
|
import (
|
||
|
"github.com/labstack/echo/v4"
|
||
|
"github.com/labstack/echo/v4/middleware"
|
||
|
)
|
||
|
|
||
|
// Skipper defines a function to skip middleware. Returning true skips processing
|
||
|
// the middleware.
|
||
|
type Skipper = middleware.Skipper
|
||
|
|
||
|
// BeforeFunc defines a function which is executed just before the middleware.
|
||
|
type BeforeFunc = middleware.BeforeFunc
|
||
|
|
||
|
type ValuesExtractor = middleware.ValuesExtractor
|
||
|
|
||
|
type ToMiddleware interface {
|
||
|
ToMiddleware() echo.MiddlewareFunc
|
||
|
}
|
||
|
|
||
|
// DefaultSkipper returns false which processes the middleware.
|
||
|
func DefaultSkipper(echo.Context) bool {
|
||
|
return false
|
||
|
}
|