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 }