Documentation ¶
Index ¶
- Variables
- func AcquireMockContext() echo.Context
- func AddAcceptFormat(mime, format string) *echo.Echo
- func AddBinderValueDecoder(name string, decoder echo.BinderValueDecoder) *echo.Echo
- func AddBinderValueEncoder(name string, encoder echo.BinderValueEncoder) *echo.Echo
- func AddFormatRenderer(format string, renderer echo.FormatRender) *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 DefaultExtension() string
- 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 IsMockContext(c echo.Context) bool
- func Logger() logger.Logger
- func MakeHandler(handler interface{}, requests ...interface{}) echo.Handler
- func Match(methods []string, path string, h interface{}, m ...interface{}) echo.IRouter
- func MaxRequestBodySize() int
- func MetaHandler(m echo.H, handler interface{}, requests ...interface{}) echo.Handler
- func MetaHandlerWithRequest(m echo.H, handler interface{}, request interface{}, methods ...string) echo.Handler
- 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 OnHostFound(onHostFound func(echo.Context) (bool, error)) *echo.Echo
- 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 RealIPConfig() *realip.Config
- func RebuildRouter(args ...[]*echo.Route) *echo.Echo
- func RegisterPoolMockContextIniter(init func(echo.Context))
- func ReleaseMockContext(ctx echo.Context)
- func RemoveFormatRenderer(formats ...string) *echo.Echo
- func RenderDataWrapper() echo.DataWrapper
- func Renderer() echo.Renderer
- func ResetPoolMockContextIniter(init func(echo.Context))
- func Rewriter() echo.Rewriter
- 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 SetDefaultExtension(ext string)
- func SetFormSliceMaxIndex(max int) *echo.Echo
- func SetFormatRenderers(formatRenderers map[string]echo.FormatRender) *echo.Echo
- func SetHTTPErrorHandler(h echo.HTTPErrorHandler)
- func SetHandlerWrapper(funcs ...func(interface{}) echo.Handler)
- func SetLogger(l logger.Logger)
- func SetMaxRequestBodySize(maxRequestSize int) *echo.Echo
- func SetMiddlewareWrapper(funcs ...func(interface{}) echo.Middleware)
- func SetPrefix(prefix string) *echo.Echo
- func SetRenderDataWrapper(dataWrapper echo.DataWrapper)
- func SetRenderer(r echo.Renderer)
- func SetRewriter(r echo.Rewriter)
- func SetValidator(validator echo.Validator) *echo.Echo
- 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 AcquireMockContext ¶ added in v1.8.2
func AddAcceptFormat ¶ added in v1.3.0
func AddBinderValueDecoder ¶ added in v1.6.0
func AddBinderValueDecoder(name string, decoder echo.BinderValueDecoder) *echo.Echo
func AddBinderValueEncoder ¶ added in v1.6.0
func AddBinderValueEncoder(name string, encoder echo.BinderValueEncoder) *echo.Echo
func AddFormatRenderer ¶ added in v1.3.7
func AddFormatRenderer(format string, renderer echo.FormatRender) *echo.Echo
func AddHandlerWrapper ¶
func AddMiddlewareWrapper ¶
func AddMiddlewareWrapper(funcs ...func(interface{}) echo.Middleware)
func DefaultExtension ¶ added in v1.6.0
func DefaultExtension() string
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 IsMockContext ¶ added in v1.7.9
func MakeHandler ¶ added in v1.8.0
MakeHandler make validateable hanlder
func MaxRequestBodySize ¶ added in v1.6.0
func MaxRequestBodySize() int
func MetaHandler ¶
MetaHandler Add meta information about endpoint
func MetaHandlerWithRequest ¶ added in v1.6.0
func MetaHandlerWithRequest(m echo.H, handler interface{}, request interface{}, methods ...string) echo.Handler
MetaHandlerWithRequest 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 OnHostFound ¶ added in v1.6.0
func ParseHeaderAccept ¶ added in v1.3.9
func RealIPConfig ¶ added in v1.6.0
func RebuildRouter ¶
RebuildRouter rebuild router
func RegisterPoolMockContextIniter ¶ added in v1.8.2
func ReleaseMockContext ¶ added in v1.8.2
func RemoveFormatRenderer ¶ added in v1.3.7
func RenderDataWrapper ¶ added in v1.6.0
func RenderDataWrapper() echo.DataWrapper
RenderDataWrapper .
func ResetPoolMockContextIniter ¶ added in v1.8.2
func SetAcceptFormats ¶ added in v1.3.0
func SetDefaultExtension ¶ added in v1.6.0
func SetDefaultExtension(ext string)
func SetFormSliceMaxIndex ¶ added in v1.6.0
func SetFormatRenderers ¶ added in v1.3.7
func SetFormatRenderers(formatRenderers map[string]echo.FormatRender) *echo.Echo
func SetHTTPErrorHandler ¶
func SetHTTPErrorHandler(h echo.HTTPErrorHandler)
SetHTTPErrorHandler registers a custom Echo.HTTPErrorHandler.
func SetHandlerWrapper ¶
func SetMaxRequestBodySize ¶ added in v1.6.0
func SetMiddlewareWrapper ¶
func SetMiddlewareWrapper(funcs ...func(interface{}) echo.Middleware)
func SetRenderDataWrapper ¶ added in v1.6.0
func SetRenderDataWrapper(dataWrapper echo.DataWrapper)
SetRenderDataWrapper .
func SetRenderer ¶
SetRenderer registers an HTML template renderer. It's invoked by Context.Render().
func SetRewriter ¶ added in v1.6.0
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.