2017-02-18 22:00:46 +00:00
|
|
|
package middleware
|
|
|
|
|
|
|
|
import "github.com/labstack/echo"
|
|
|
|
|
|
|
|
type (
|
|
|
|
// Skipper defines a function to skip middleware. Returning true skips processing
|
|
|
|
// the middleware.
|
|
|
|
Skipper func(c echo.Context) bool
|
|
|
|
)
|
|
|
|
|
|
|
|
// DefaultSkipper returns false which processes the middleware.
|
2017-06-05 22:01:05 +00:00
|
|
|
func DefaultSkipper(echo.Context) bool {
|
2017-02-18 22:00:46 +00:00
|
|
|
return false
|
|
|
|
}
|