routes

package
v1.0.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 2, 2022 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitRoutes

func InitRoutes(app *gin.Engine) (err error)

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)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL