Documentation
¶
Index ¶
- Variables
- func HTTPError(err error) *echo.HTTPError
- func HealthStatus(m HealthMap) (healthy bool, details map[string]string)
- func SetRoute(server Server, routers ...Router)
- type EchoLogrus
- func (l *EchoLogrus) Debugj(j log.JSON)
- func (l *EchoLogrus) Errorj(j log.JSON)
- func (l *EchoLogrus) Fatalj(j log.JSON)
- func (l *EchoLogrus) Infoj(j log.JSON)
- func (l *EchoLogrus) Level() log.Lvl
- func (l *EchoLogrus) Output() io.Writer
- func (l *EchoLogrus) Panicj(j log.JSON)
- func (l *EchoLogrus) Prefix() string
- func (l *EchoLogrus) Printj(j log.JSON)
- func (l *EchoLogrus) SetHeader(string)
- func (l *EchoLogrus) SetLevel(lvl log.Lvl)
- func (l *EchoLogrus) SetPrefix(prefix string)
- func (l *EchoLogrus) Warnj(j log.JSON)
- type Error
- type HealthMap
- type Router
- type Server
- type SetRouteFn
- type ValidErr
Constants ¶
This section is empty.
Variables ¶
View Source
var HealthStatusOK = "OK"
HealthStatusOK is health status ok
View Source
var Stdout io.Writer = os.Stdout
Stdout standard output
Functions ¶
func HealthStatus ¶ added in v0.9.1
HealthStatus of HealthCheck
Types ¶
type EchoLogrus ¶
EchoLogrus is implementation of echo Logger
func WrapLogrus ¶
func WrapLogrus(logger *logrus.Logger) *EchoLogrus
WrapLogrus logrus logger in echo log interface
func (*EchoLogrus) SetHeader ¶
func (l *EchoLogrus) SetHeader(string)
SetHeader to set header (NOT SUPPORTED)
func (*EchoLogrus) SetLevel ¶
func (l *EchoLogrus) SetLevel(lvl log.Lvl)
SetLevel set level to logger from given log.Lvl
func (*EchoLogrus) SetPrefix ¶
func (l *EchoLogrus) SetPrefix(prefix string)
SetPrefix to set prefix
type Error ¶
Error interface
func NotImplementedErr ¶ added in v0.8.38
func NotImplementedErr() Error
NotImplementedErr return not implemented error
type Server ¶
type Server interface {
CONNECT(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
DELETE(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
GET(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
HEAD(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
OPTIONS(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
PATCH(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
POST(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
PUT(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
TRACE(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
Any(path string, handler echo.HandlerFunc, middleware ...echo.MiddlewareFunc) []*echo.Route
Add(method, path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
Match(methods []string, path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) []*echo.Route
Group(prefix string, m ...echo.MiddlewareFunc) *echo.Group
Use(m ...echo.MiddlewareFunc)
}
Server interface for echo.Echo and echo.Group
Click to show internal directories.
Click to hide internal directories.