authority

package
v0.0.0-...-937b28e Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2022 License: GPL-3.0 Imports: 1 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Can

func Can(role_int int, action AuthAction) bool

func Reset

func Reset()

Types

type AuthAction

type AuthAction int

type AuthRole

type AuthRole int

func (AuthRole) Allow

func (role AuthRole) Allow(action AuthAction) AuthRole

func (AuthRole) Can

func (role AuthRole) Can(action AuthAction) bool

func (AuthRole) Disallow

func (role AuthRole) Disallow(action AuthAction) AuthRole

func (AuthRole) Inherit

func (myrole AuthRole) Inherit(otherrole AuthRole) AuthRole

Jump to

Keyboard shortcuts

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