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 Logger() logger.Logger
- func Match(methods []string, path string, h interface{}, m ...interface{}) echo.IRouter
- func MetaHandler(m echo.H, handler interface{}) interface{}
- func NamedRoutes() map[string][]int
- func NewContext(req engine.Request, resp engine.Response) 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 PreUse(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 Stop() error
- func Trace(path string, h interface{}, m ...interface{}) echo.IRouter
- 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 ¶
func AddFormatRenderer ¶
func AddHandlerWrapper ¶
func AddMiddlewareWrapper ¶
func AddMiddlewareWrapper(funcs ...func(interface{}) echo.Middleware)
func DefaultHTTPErrorHandler ¶
DefaultHTTPErrorHandler invokes the default HTTP error handler.
func HTTPErrorHandler ¶
func HTTPErrorHandler() echo.HTTPErrorHandler
HTTPErrorHandler returns the HTTPErrorHandler
func MetaHandler ¶
MetaHandler Add meta information about endpoint
func NamedRoutes ¶
NamedRoutes returns the registered handler name.
func ParseHeaderAccept ¶
func RebuildRouter ¶
RebuildRouter rebuild router
func RemoveFormatRenderer ¶
func SetFormatRenderers ¶
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.