authz

package
v0.0.0-...-8c2001a Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthZ

type AuthZ struct {
	// contains filtered or unexported fields
}

func (*AuthZ) CheckAction

func (a *AuthZ) CheckAction(user, action string) (bool, error)

func (*AuthZ) CheckScope

func (a *AuthZ) CheckScope(scope string) bool

type Manager

type Manager struct {
	// contains filtered or unexported fields
}

func New

func New() Manager

func (*Manager) Get

func (s *Manager) Get(key string) *AuthZ

func (*Manager) Set

func (s *Manager) Set(key string, model *entities.UserGroup)

Jump to

Keyboard shortcuts

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