Documentation ¶
Index ¶
- Variables
- func AddHandlerWrapper(funcs ...func(interface{}) echo.Handler)
- func AddMiddlewareWrapper(funcs ...func(interface{}) echo.Middleware)
- func Any(path string, h interface{}, m ...interface{})
- func Connect(path string, h interface{}, m ...interface{})
- func Debug() bool
- func DefaultHTTPErrorHandler(err error, c echo.Context)
- func Delete(path string, h interface{}, m ...interface{})
- func Engine() engine.Engine
- func Get(path string, h interface{}, m ...interface{})
- func Group(prefix string, m ...interface{}) (g *echo.Group)
- func Head(path string, h interface{}, m ...interface{})
- func Logger() logger.Logger
- func Match(methods []string, path string, h interface{}, m ...interface{})
- func MetaHandler(m echo.H, handler interface{}) interface{}
- func MetaMiddleware(m echo.H, middleware interface{}) interface{}
- func NamedRoutes() map[string][]int
- func Options(path string, h interface{}, m ...interface{})
- func Patch(path string, h interface{}, m ...interface{})
- func Post(path string, h interface{}, m ...interface{})
- func Pre(middleware ...interface{})
- func PreUse(middleware ...interface{})
- func Prefix() string
- func Put(path string, h interface{}, m ...interface{})
- func RebuildRouter(args ...[]*echo.Route)
- func Route(methods string, path string, h interface{}, m ...interface{})
- func Router() *echo.Router
- func Routes() []*echo.Route
- func Run(eng engine.Engine, handler ...engine.Handler)
- func ServeHTTP(req engine.Request, res engine.Response)
- func SetBinder(b echo.Binder)
- func SetDebug(on bool)
- func SetHTTPErrorHandler(h echo.HTTPErrorHandler)
- func SetHandlerWrapper(funcs ...func(interface{}) echo.Handler)
- func SetLogger(l logger.Logger)
- func SetMiddlewareWrapper(funcs ...func(interface{}) echo.Middleware)
- func SetRenderer(r echo.Renderer)
- func Trace(path string, h interface{}, m ...interface{})
- func URI(handler interface{}, params ...interface{}) string
- func URL(h interface{}, params ...interface{}) string
- func Use(middleware ...interface{})
Constants ¶
This section is empty.
Variables ¶
var Default = echo.New()
Functions ¶
func AddHandlerWrapper ¶
func AddMiddlewareWrapper ¶
func AddMiddlewareWrapper(funcs ...func(interface{}) echo.Middleware)
func Any ¶
func Any(path string, h interface{}, m ...interface{})
Any adds a route > handler to the router for all HTTP methods.
func Connect ¶
func Connect(path string, h interface{}, m ...interface{})
Connect adds a CONNECT route > handler to the router.
func DefaultHTTPErrorHandler ¶
DefaultHTTPErrorHandler invokes the default HTTP error handler.
func Delete ¶
func Delete(path string, h interface{}, m ...interface{})
Delete adds a DELETE route > handler to the router.
func Get ¶
func Get(path string, h interface{}, m ...interface{})
Get adds a GET route > handler to the router.
func Head ¶
func Head(path string, h interface{}, m ...interface{})
Head adds a HEAD route > handler to the router.
func MetaHandler ¶
MetaHandler Add meta information about endpoint
func MetaMiddleware ¶
MetaMiddleware Add meta information about endpoint
func NamedRoutes ¶
NamedRoutes returns the registered handler name.
func Options ¶
func Options(path string, h interface{}, m ...interface{})
Options adds an OPTIONS route > handler to the router.
func Patch ¶
func Patch(path string, h interface{}, m ...interface{})
Patch adds a PATCH route > handler to the router.
func Post ¶
func Post(path string, h interface{}, m ...interface{})
Post adds a POST route > handler to the router.
func Put ¶
func Put(path string, h interface{}, m ...interface{})
Put adds a PUT route > handler to the router.
func SetHTTPErrorHandler ¶
func SetHTTPErrorHandler(h echo.HTTPErrorHandler)
SetHTTPErrorHandler registers a custom Echo.HTTPErrorHandler.
func SetHandlerWrapper ¶
func SetMiddlewareWrapper ¶
func SetMiddlewareWrapper(funcs ...func(interface{}) echo.Middleware)
func SetRenderer ¶
SetRenderer registers an HTML template renderer. It's invoked by Context.Render().
func Trace ¶
func Trace(path string, h interface{}, m ...interface{})
Trace adds a TRACE route > handler to the router.
func URI ¶
func URI(handler interface{}, params ...interface{}) string
URI generates a URI from handler.
Types ¶
This section is empty.