Documentation
¶
Index ¶
- Variables
- func DumpEcho(e *echo.Echo) []string
- func HTTPError(err error) *echo.HTTPError
- func HealthStatus(m HealthMap) (healthy bool, details map[string]string)
- func SetRoute(server Server, routers ...Router)
- type Entity
- type EntityAnnotation
- 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 Entity ¶ added in v0.9.4
type Entity struct {
Repo string
Table string
Dialect string
DBCtor string
Target string
Pkg string
}
Entity ...
func CreateEntity ¶ added in v0.9.4
CreateEntity create entity
type EntityAnnotation ¶ added in v0.9.4
type EntityAnnotation struct {
TagName string // By default is @entity
}
EntityAnnotation ...
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.