access

package
v0.0.0-...-55c8b89 Latest Latest
Warning

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

Go to latest
Published: May 11, 2020 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

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

func New

func New(enforcer *casbin.Enforcer, userManager *users.Manager) *Manager

func (*Manager) Add

func (m *Manager) Add(user, role string) (bool, error)

func (*Manager) Enforce

func (m *Manager) Enforce(user, obj, act string) (bool, error)

func (*Manager) Middleware

func (m *Manager) Middleware(obj, act string) clevergo.MiddlewareFunc

Jump to

Keyboard shortcuts

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