Documentation
¶
Index ¶
- Variables
- type ControllerWrapper
- type Module
- func (m *Module) Create(baseRouter gonethttproute.RouterWrapper) error
- func (m *Module) CreateController() func(baseRouter gonethttproute.RouterWrapper) error
- func (m *Module) CreateService() func() error
- func (m *Module) CreateSubmodule(submodule ModuleWrapper) error
- func (m *Module) CreateValidator() func() error
- type ModuleWrapper
- type ServiceWrapper
- type ValidatorWrapper
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type ControllerWrapper ¶
type ControllerWrapper interface {
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) error
Create is a function that creates a new instance of the Module struct
func (*Module) CreateController ¶
func (m *Module) CreateController() func(baseRouter gonethttproute.RouterWrapper) error
CreateController is a function that creates a new instance of the Controller struct
func (*Module) CreateService ¶
CreateService is a function that creates a new instance of the Service struct
func (*Module) CreateSubmodule ¶
func (m *Module) CreateSubmodule(submodule ModuleWrapper) error
CreateSubmodule is a function that creates a new submodule of the Module struct
func (*Module) CreateValidator ¶
CreateValidator is a function that creates a new instance of the Validator struct
type ModuleWrapper ¶
type ModuleWrapper interface {
Create(baseRouter gonethttproute.RouterWrapper) error
CreateSubmodule(submodule ModuleWrapper) error
CreateService() func() error
CreateController() func(baseRouter gonethttproute.RouterWrapper) error
CreateValidator() func() error
}
ModuleWrapper is the interface for the route module
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