Documentation ¶
Index ¶
- func CORSMiddle() gin.HandlerFunc
- func ConfRouter(router *gin.RouterGroup)
- func GenRouter(router *gin.RouterGroup)
- func JobRouter(router *gin.RouterGroup)
- func LogRouter(router *gin.RouterGroup)
- func MinRouter(port int, group, secretKey string, service rbac.IRBACService) *gin.Engine
- func RbacRouter(router *gin.RouterGroup)
- func Run(param string) error
- func SrvRouter(router *gin.RouterGroup)
- func SysMiddle(router *gin.Engine, maxCores int)
- type RouterBuilder
- type RouterConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CORSMiddle ¶ added in v1.0.2
func CORSMiddle() gin.HandlerFunc
func ConfRouter ¶ added in v1.0.2
func ConfRouter(router *gin.RouterGroup)
func GenRouter ¶ added in v1.0.2
func GenRouter(router *gin.RouterGroup)
func JobRouter ¶ added in v1.0.2
func JobRouter(router *gin.RouterGroup)
func LogRouter ¶ added in v1.0.2
func LogRouter(router *gin.RouterGroup)
func RbacRouter ¶ added in v1.0.2
func RbacRouter(router *gin.RouterGroup)
func SrvRouter ¶ added in v1.0.2
func SrvRouter(router *gin.RouterGroup)
Types ¶
type RouterBuilder ¶ added in v1.0.2
type RouterBuilder interface { WithPromePort(port int) RouterBuilder WithMode(mode string) RouterBuilder WithSecretKey(secretKey string) RouterBuilder WithService(service rbac.IRBACService) RouterBuilder WithAcl(acl bool) RouterBuilder WithAcs(acs bool) RouterBuilder Build() *gin.Engine }
func NewRouterBuilder ¶ added in v1.0.2
func NewRouterBuilder() RouterBuilder
type RouterConfig ¶ added in v1.0.2
Directories ¶
Path | Synopsis |
---|---|
controllers/base_controller.go
|
controllers/base_controller.go |
dsl
service/base_service.go
|
service/base_service.go |
middle/logger
model.go
|
model.go |
sys
|
|
rbac/captcha/assets/bindata/images
Code generated for package images by go-bindata DO NOT EDIT.
|
Code generated for package images by go-bindata DO NOT EDIT. |
rbac/captcha/assets/bindata/tiles
Code generated for package tiles by go-bindata DO NOT EDIT.
|
Code generated for package tiles by go-bindata DO NOT EDIT. |
Click to show internal directories.
Click to hide internal directories.