Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller interface {
Build() []*RouteGroup
}
This will handle the defining of handler functions and its method and path.
type Manager ¶
type Manager interface {
Register(groups []*RouteGroup)
}
This manager handles the handlers and its endpoint by grouping and emitting the grouped handlers into a more compact approach.
func NewRoutingManager ¶
type RouteGroup ¶
type RouteGroup struct {
Prefix string
Middleware []hypergon.Middleware
Routes []Route
SubGroups []*RouteGroup
}
Click to show internal directories.
Click to hide internal directories.