modelRbac

package module
v0.0.0-...-5c0318e Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2020 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Authorize

func Authorize(e *casbin.Enforcer, r RoleGetter) buffalo.MiddlewareFunc

New enables cashbin rbac

Types

type RoleGetter

type RoleGetter func(buffalo.Context) (string, error)

RoleGetter must return the role of the user who made the request

Jump to

Keyboard shortcuts

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