Documentation ¶
Index ¶
- Variables
- func AddAcceptFormat(mime, format string) *echo.Echo
- func AddHandlerWrapper(funcs ...func(interface{}) echo.Handler)
- func AddMiddlewareWrapper(funcs ...func(interface{}) echo.Middleware)
- func Any(path string, h interface{}, m ...interface{})
- func Binder() echo.Binder
- func Clear(middleware ...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{}) *echo.Group
- func HTTPErrorHandler() echo.HTTPErrorHandler
- 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 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 Put(path string, h interface{}, m ...interface{})
- func RebuildRouter(args ...[]*echo.Route)
- func Renderer() echo.Renderer
- 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 SetAcceptFormats(acceptFormats map[string]string) *echo.Echo
- 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 Stop() error
- 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 AddAcceptFormat ¶ added in v1.3.0
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 HTTPErrorHandler ¶ added in v1.3.0
func HTTPErrorHandler() echo.HTTPErrorHandler
HTTPErrorHandler returns the HTTPErrorHandler
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 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 SetAcceptFormats ¶ added in v1.3.0
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.