mirror of
https://github.com/labstack/echo.git
synced 2025-01-26 03:20:08 +02:00
Removed Middleware#Priority
Signed-off-by: Vishal Rana <vr@labstack.com>
This commit is contained in:
parent
979d64941f
commit
e1a7549855
5
echo.go
5
echo.go
@ -48,7 +48,6 @@ type (
|
||||
|
||||
Middleware interface {
|
||||
Handle(Handler) Handler
|
||||
Priority() int
|
||||
}
|
||||
|
||||
MiddlewareFunc func(Handler) Handler
|
||||
@ -212,10 +211,6 @@ func (f MiddlewareFunc) Handle(h Handler) Handler {
|
||||
return f(h)
|
||||
}
|
||||
|
||||
func (f MiddlewareFunc) Priority() int {
|
||||
return 1
|
||||
}
|
||||
|
||||
func (f HandlerFunc) Handle(c Context) error {
|
||||
return f(c)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user