Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Echo *echo.Echo
Routes func(e *echo.Echo, r *Router) error
SkipMetrics bool
SkipHealthChecks bool
HealthChecksDB *gorm.DB
SwaggerTitle string
SwaggerPath string
}
Config contains the configuration for the router.
type Route ¶
type Route struct {
// contains filtered or unexported fields
}
Route contains the details of a route.
type Router ¶
type Router struct {
Routes []Route
}
Router contains all the available routes of the service.
func AddRoute ¶
func AddRoute(r *Router, group *echo.Group, path string, handlerFunc echo.HandlerFunc, restVerb string) *Router
AddRoute adds a route.
func (*Router) PrintRoutes ¶ added in v0.1.0
PrintRoutes prints all the available routes registered in the Echo framework.
Click to show internal directories.
Click to hide internal directories.