Documentation ¶
Index ¶
- Constants
- func BindRequest(c *gin.Context, obj interface{}) error
- func GroupUse(g string, middlewares ...gin.HandlerFunc)
- func RegisterController(c controller.Controller, middlewares ...gin.HandlerFunc) error
- func RegisterControllerGroup(c controller.Controller, g string, middlewares ...gin.HandlerFunc) error
- func RoutePerm(f gin.HandlerFunc) string
- func RoutePerms() map[interface{}]string
- func Static(relativePath, root string) gin.IRoutes
- func StaticFS(relativePath string, fs http.FileSystem) gin.IRoutes
- func StaticFile(relativePath, filepath string) gin.IRoutes
- func Use(middlewares ...gin.HandlerFunc)
- type Request
- type Response
- type RouterComponent
- type RouterConfig
Constants ¶
View Source
const ( GET = "GET" POST = "POST" PUT = "PUT" DELETE = "DELETE" HEAD = "HEAD" PATCH = "PATCH" OPTIONS = "OPTIONS" PathTag = "path" PermTag = "perm" )
Variables ¶
This section is empty.
Functions ¶
func BindRequest ¶
func GroupUse ¶
func GroupUse(g string, middlewares ...gin.HandlerFunc)
func RegisterController ¶
func RegisterController(c controller.Controller, middlewares ...gin.HandlerFunc) error
func RegisterControllerGroup ¶
func RegisterControllerGroup(c controller.Controller, g string, middlewares ...gin.HandlerFunc) error
func RoutePerm ¶
func RoutePerm(f gin.HandlerFunc) string
func RoutePerms ¶
func RoutePerms() map[interface{}]string
func Use ¶
func Use(middlewares ...gin.HandlerFunc)
Types ¶
type RouterComponent ¶
type RouterComponent struct { }
func (RouterComponent) Init ¶
func (c RouterComponent) Init(options ...interface{}) error
type RouterConfig ¶
var ( GlobalRouterConfig RouterConfig GlobalRouter *gin.Engine )
Click to show internal directories.
Click to hide internal directories.