Documentation
¶
Overview ¶
Package testutil provides utility functions and types for testing.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller interface {
RoutesInfo() gin.RoutesInfo
}
Controller is an interface that defines the methods for a controller.
type ControllerBase ¶
ControllerBase is a struct that provides a base for controllers.
func NewControllerBase ¶
func NewControllerBase() *ControllerBase
NewControllerBase creates a new instance of ControllerBase.
func (*ControllerBase) SetupRouter ¶
func (b *ControllerBase) SetupRouter(controller Controller)
SetupRouter sets up the router for the controller.
Click to show internal directories.
Click to hide internal directories.