auth

package
v0.0.0-...-4061f55 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2019 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const Anonymous = "anonymous"

Anonymous role

Variables

This section is empty.

Functions

func Enforcer

func Enforcer() *casbin.Enforcer

Enforcer object.

func RBAC

RBAC middleware function.

func Save

func Save()

Save policies into the db.

func Setup

func Setup(db *gorm.DB) error

Setup init/load the policy backend database.

func Token

func Token(ctx *fasthttp.RequestCtx) (*jwt.Data, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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