1
0
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:
Vishal Rana 2016-02-20 16:20:10 -08:00
parent 979d64941f
commit e1a7549855

View File

@ -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)
}