Documentation ¶
Index ¶
- Variables
- func AddAcceptFormat(mime, format string) *echo.Echo
- func AddFormatRenderer(format string, renderer func(c echo.Context, data interface{}) error) *echo.Echo
- func AddHandlerWrapper(funcs ...func(interface{}) echo.Handler)
- func AddMiddlewareWrapper(funcs ...func(interface{}) echo.Middleware)
- func Any(path string, h interface{}, m ...interface{}) echo.IRouter
- func Binder() echo.Binder
- func Clear(middleware ...interface{})
- func Commit() *echo.Echo
- func Connect(path string, h interface{}, m ...interface{}) echo.IRouter
- func Debug() bool
- func DefaultHTTPErrorHandler(err error, c echo.Context)
- func Delete(path string, h interface{}, m ...interface{}) echo.IRouter
- func Engine() engine.Engine
- func Get(path string, h interface{}, m ...interface{}) echo.IRouter
- func Group(prefix string, m ...interface{}) *echo.Group
- func HTTPErrorHandler() echo.HTTPErrorHandler
- func Head(path string, h interface{}, m ...interface{}) echo.IRouter
- func Host(name string, m ...interface{}) *echo.Group
- func Logger() logger.Logger
- func Match(methods []string, path string, h interface{}, m ...interface{}) echo.IRouter
- func MetaHandler(m echo.H, handler interface{}, requests ...echo.RequestValidator) interface{}
- func MustGetContext(ctx context.Context, args ...*echo.Echo) echo.Context
- func NamedRoutes() map[string][]int
- func NewContext(req engine.Request, resp engine.Response) echo.Context
- func NewMockContext(args ...*echo.Echo) echo.Context
- func Options(path string, h interface{}, m ...interface{}) echo.IRouter
- func ParseHeaderAccept(on bool) *echo.Echo
- func Patch(path string, h interface{}, m ...interface{}) echo.IRouter
- func Post(path string, h interface{}, m ...interface{}) echo.IRouter
- func Pre(middleware ...interface{})
- func Prefix() string
- func Put(path string, h interface{}, m ...interface{}) echo.IRouter
- func RebuildRouter(args ...[]*echo.Route) *echo.Echo
- func RemoveFormatRenderer(formats ...string) *echo.Echo
- func Renderer() echo.Renderer
- func Route(methods string, path string, h interface{}, m ...interface{}) echo.IRouter
- func Router() *echo.Router
- func Routes() []*echo.Route
- func Run(eng engine.Engine, handler ...engine.Handler) error
- 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 SetFormatRenderers(formatRenderers map[string]func(c echo.Context, data interface{}) error) *echo.Echo
- 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 SetPrefix(prefix string) *echo.Echo
- func SetRenderer(r echo.Renderer)
- func Shutdown(ctx context.Context) error
- func Stop() error
- func Trace(path string, h interface{}, m ...interface{}) echo.IRouter
- func TypeHost(alias string, args ...interface{}) echo.TypeHost
- func URI(handler interface{}, params ...interface{}) string
- func URL(h interface{}, params ...interface{}) string
- func Use(middleware ...interface{})
Constants ¶
This section is empty.
Variables ¶
View Source
var Default = echo.New()
Functions ¶
func AddAcceptFormat ¶ added in v1.3.0
func AddFormatRenderer ¶ added in v1.3.7
func AddHandlerWrapper ¶
func AddMiddlewareWrapper ¶
func AddMiddlewareWrapper(funcs ...func(interface{}) echo.Middleware)
func DefaultHTTPErrorHandler ¶
DefaultHTTPErrorHandler invokes the default HTTP error handler.
func HTTPErrorHandler ¶ added in v1.3.0
func HTTPErrorHandler() echo.HTTPErrorHandler
HTTPErrorHandler returns the HTTPErrorHandler
func MetaHandler ¶
func MetaHandler(m echo.H, handler interface{}, requests ...echo.RequestValidator) interface{}
MetaHandler Add meta information about endpoint
func MustGetContext ¶ added in v1.6.0
func NamedRoutes ¶
NamedRoutes returns the registered handler name.
func NewContext ¶ added in v1.5.0
func ParseHeaderAccept ¶ added in v1.3.9
func RebuildRouter ¶
RebuildRouter rebuild router
func RemoveFormatRenderer ¶ added in v1.3.7
func SetAcceptFormats ¶ added in v1.3.0
func SetFormatRenderers ¶ added in v1.3.7
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 URI ¶
func URI(handler interface{}, params ...interface{}) string
URI generates a URI from handler.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.