service

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckAccessForTable

func CheckAccessForTable[T IObject](userId string, idOfT string) bool

Types

type AccessManager

type AccessManager struct {
	DefaultRoles map[string]*ObjWrapper[Role]

	RulesRoutes map[string]*ObjWrapper[Role]
	RulesTables map[string]*ObjWrapper[Role]
}

func NewAccessManager

func NewAccessManager() *AccessManager

func (AccessManager) CheckAccessForRoute

func (m AccessManager) CheckAccessForRoute(userId string, page string) bool

Jump to

Keyboard shortcuts

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