authority

package
v0.0.0-...-906974d Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2015 License: GPL-3.0, GPL-2.0 Imports: 0 Imported by: 0

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
JackTT - Gopher 🇻🇳