permission

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2018 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	//ErrCouldNotGetKeyID error when could not get key id in header
	ErrCouldNotGetKeyID = errors.New("could not get key id in header")
)

Functions

func NewPermissioner

func NewPermissioner(e *casbin.Enforcer) gin.HandlerFunc

NewPermissioner return a gin HandleFunc middleware

Types

type KeyID

type KeyID string

KeyID is the abstract key needed for authentication

type Permissioner

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

Permissioner is struct for control permission

Jump to

Keyboard shortcuts

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