Documentation
¶
Index ¶
- func InitRoutes(app *gin.Engine) (err error)
- type RouterGroups
- type RouterService
- func (svc *RouterService) RegisterActionControllerToGroup(group *gin.RouterGroup, basePath string, ctr controllers.ActionController)
- func (svc *RouterService) RegisterControllerToGroup(group *gin.RouterGroup, basePath string, ctr controllers.BasicController)
- func (svc *RouterService) RegisterHandlerToGroup(group *gin.RouterGroup, path string, method string, handler gin.HandlerFunc)
- func (svc *RouterService) RegisterListActionControllerToGroup(group *gin.RouterGroup, basePath string, ctr controllers.ListActionController)
- func (svc *RouterService) RegisterListControllerToGroup(group *gin.RouterGroup, basePath string, ctr controllers.ListController)
- type RouterServiceInterface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitRoutes ¶
Types ¶
type RouterGroups ¶
type RouterGroups struct { AuthGroup *gin.RouterGroup AnonymousGroup *gin.RouterGroup FilerGroup *gin.RouterGroup }
func NewRouterGroups ¶
func NewRouterGroups(app *gin.Engine) (groups *RouterGroups)
type RouterService ¶
type RouterService struct {
// contains filtered or unexported fields
}
func NewRouterService ¶
func NewRouterService(app *gin.Engine) (svc *RouterService)
func (*RouterService) RegisterActionControllerToGroup ¶
func (svc *RouterService) RegisterActionControllerToGroup(group *gin.RouterGroup, basePath string, ctr controllers.ActionController)
func (*RouterService) RegisterControllerToGroup ¶
func (svc *RouterService) RegisterControllerToGroup(group *gin.RouterGroup, basePath string, ctr controllers.BasicController)
func (*RouterService) RegisterHandlerToGroup ¶
func (svc *RouterService) RegisterHandlerToGroup(group *gin.RouterGroup, path string, method string, handler gin.HandlerFunc)
func (*RouterService) RegisterListActionControllerToGroup ¶
func (svc *RouterService) RegisterListActionControllerToGroup(group *gin.RouterGroup, basePath string, ctr controllers.ListActionController)
func (*RouterService) RegisterListControllerToGroup ¶
func (svc *RouterService) RegisterListControllerToGroup(group *gin.RouterGroup, basePath string, ctr controllers.ListController)
type RouterServiceInterface ¶
type RouterServiceInterface interface { RegisterControllerToGroup(group *gin.RouterGroup, basePath string, ctr controllers.ListController) RegisterHandlerToGroup(group *gin.RouterGroup, path string, method string, handler gin.HandlerFunc) }
Click to show internal directories.
Click to hide internal directories.