ginrbac

package module
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

README

gin-rbac

gin 的rbac管理模块

在项目中使用
$ go get github.com/xushunbin/gin-rbac@v1.0.0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Middleware

func Middleware() gin.HandlerFunc

Middleware gin中间件

Types

type RBAC

type RBAC struct {
	Ctx   *gin.Context
	DB    *gorm.DB
	Redis *redis.Client
}

func New

func New(ctx *gin.Context, db *gorm.DB, rds *redis.Client) *RBAC

New 获取RBAC实例

Directories

Path Synopsis
utils

Jump to

Keyboard shortcuts

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