Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Controller ¶ added in v0.6.11
type Controller struct {
gonethttproute.RouterWrapper
}
Controller is the struct for the route controller
func (*Controller) CreateRouter ¶ added in v0.6.11
func (c *Controller) CreateRouter( baseRouter gonethttproute.RouterWrapper, path string, ) error
CreateRouter creates the controller
func (*Controller) GetRouter ¶ added in v0.6.11
func (c *Controller) GetRouter() gonethttproute.RouterWrapper
GetRouter returns the router
func (*Controller) RegisterGroups ¶ added in v0.6.11
func (c *Controller) RegisterGroups()
RegisterGroups registers the groups
func (*Controller) RegisterRoutes ¶ added in v0.6.11
func (c *Controller) RegisterRoutes()
RegisterRoutes registers the routes
type ControllerWrapper ¶
type ControllerWrapper interface {
CreateRouter(baseRouter gonethttproute.RouterWrapper, path string) error
GetRouter() gonethttproute.RouterWrapper
RegisterRoutes()
RegisterGroups()
gonethttproute.RouterWrapper
}
ControllerWrapper is the interface for the route controller
type Module ¶
type Module struct {
Service ServiceWrapper
Validator ValidatorWrapper
Controller ControllerWrapper
}
Module is the struct for the route module
func (*Module) Create ¶
func (m *Module) Create( baseRouter gonethttproute.RouterWrapper, path string, ) error
Create is a function that creates a new instance of the Module struct
type ModuleWrapper ¶
type ModuleWrapper interface {
Create(baseRouter gonethttproute.RouterWrapper, path string) error
}
ModuleWrapper is the interface for the route module
func NewModule ¶ added in v0.6.11
func NewModule( service ServiceWrapper, validator ValidatorWrapper, controller ControllerWrapper, ) ModuleWrapper
NewModule is a function that creates a new instance of the Module struct
type ServiceWrapper ¶
type ServiceWrapper interface{}
ServiceWrapper is the interface for the route service
type ValidatorWrapper ¶
type ValidatorWrapper interface {
govalidatormappervalidator.Service
}
ValidatorWrapper is the interface for the route validator
Click to show internal directories.
Click to hide internal directories.