aboutsummaryrefslogtreecommitdiff
path: root/echo/interfaces.go
blob: f3380c603f61687109a6adc3ea4dde2f81c3ef6f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package echo

import (
	"github.com/labstack/echo/v4"
)

// URLRouter is an interface that identifies the core traits of a URL router.
// This mainly exists to work around the fact that our server is actually a
// golib.EchoWrapper and not an echo.Echo.
type URLRouter interface {
	DELETE(string, echo.HandlerFunc, ...echo.MiddlewareFunc) *echo.Route
	GET(string, echo.HandlerFunc, ...echo.MiddlewareFunc) *echo.Route
	HEAD(string, echo.HandlerFunc, ...echo.MiddlewareFunc) *echo.Route
	OPTIONS(string, echo.HandlerFunc, ...echo.MiddlewareFunc) *echo.Route
	PATCH(string, echo.HandlerFunc, ...echo.MiddlewareFunc) *echo.Route
	POST(string, echo.HandlerFunc, ...echo.MiddlewareFunc) *echo.Route
	PUT(string, echo.HandlerFunc, ...echo.MiddlewareFunc) *echo.Route
	Group(string, ...echo.MiddlewareFunc) *echo.Group
	Add(string, string, echo.HandlerFunc, ...echo.MiddlewareFunc) *echo.Route
}