Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API interface { Routes(route *gin.RouterGroup) GlobalMiddlewares() []gin.HandlerFunc InitializeServices() error AreServicesInitialized() bool FinalizeServices() error }
API should implement the routes logic and services that will be associated with the router as well as eventual default middleware (the order matters)
type Router ¶
type Router struct {
// contains filtered or unexported fields
}
Router represent a Router instance registered middleware :
- gin.Recovery
func (*Router) GetEngine ¶
GetEngine returns the gin engine instance associated with the Router object. Panics if the object is not initialized.
func (*Router) Initialize ¶
Initialize initializes the Router structure.
func (*Router) IsInitialized ¶
IsInitialized returns whether the router is initialized.
Click to show internal directories.
Click to hide internal directories.