rbac

package module
v0.0.5 Latest Latest
Warning

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

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

README

rbac

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DB *gorm.DB

Functions

func GetDB

func GetDB() *gorm.DB

func Open added in v0.0.4

func Open(dialect string, args ...interface{}) (err error)

func SetConnectionPooling added in v0.0.4

func SetConnectionPooling(maxIdle, maxOpen int)

Types

type Find

type Find struct {
	UserInfo      userInfo
	RoleInfo      roleInfo
	GroupInfo     groupInfo
	GroupRole     groupRole
	UserGroup     userGroup
	UserRole      userRole
	MenuInfo      menuInfo
	RoleOperate   roleOperate
	SystemOperate systemOperate
}

type RBAC

type RBAC struct {
	SqlName string
	Data    Find
}

RBAC tag v0.0.4

func (*RBAC) New added in v0.0.4

func (r *RBAC) New() (errs error)

Jump to

Keyboard shortcuts

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