router

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2018 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func APIDemoRouter

func APIDemoRouter(g *gin.RouterGroup, demo *ctl.Demo)

APIDemoRouter 注册/demos路由

func APILoginRouter

func APILoginRouter(g *gin.RouterGroup, login *ctl.Login)

APILoginRouter 注册登录相关路由

func APIMenuRouter

func APIMenuRouter(g *gin.RouterGroup, menu *ctl.Menu)

APIMenuRouter 注册/menus路由

func APIRoleRouter

func APIRoleRouter(g *gin.RouterGroup, role *ctl.Role)

APIRoleRouter 注册/roles路由

func APIUserRouter

func APIUserRouter(g *gin.RouterGroup, user *ctl.User)

APIUserRouter 注册/users路由

func APIV1Handler

func APIV1Handler(r *gin.Engine, db *mysql.DB, c *ctl.Common)

APIV1Handler /api/v1路由

func RecoveryMiddleware

func RecoveryMiddleware(c *gin.Context)

RecoveryMiddleware 崩溃恢复

func SessionMiddleware

func SessionMiddleware(db *mysql.DB, allowPrefixes ...string) gin.HandlerFunc

SessionMiddleware session中间件

func TraceMiddleware

func TraceMiddleware(allowPrefixes ...string) gin.HandlerFunc

TraceMiddleware 跟踪ID中间件

func VerifySessionMiddleware

func VerifySessionMiddleware(allowPrefixes, skipPrefixes []string) gin.HandlerFunc

VerifySessionMiddleware 验证session中间件

Types

This section is empty.

Jump to

Keyboard shortcuts

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