Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller interface {
Register(routerGroup *gin.RouterGroup)
}
Controller defines the default functionality of a handler. It must be implemented by any struct that needs to be registered further.
type ControllerWrapper ¶
type ControllerWrapper struct { dig.Out Controller Controller `group:"controllers"` }
ControllerWrapper contains a Controller along and helps to initialize the Controllers.
type Controllers ¶
type Controllers struct {
HTTP []Controller
}
Controllers is a collections of all available controllers.
func NewControllersWithParams ¶
func NewControllersWithParams(cp ControllersParams) Controllers
NewControllersWithParams creates a new collection of controllers based on the given services.
type ControllersParams ¶
type ControllersParams struct { dig.In Controllers []Controller `group:"controllers"` }
ControllersParams contains all managed controllers.
Click to show internal directories.
Click to hide internal directories.