jwt_auth

package
v0.0.0-...-c86e3d9 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Admin

func Admin(m jwt.Auth) gin.HandlerFunc

Admin is user is admin

func NewAuth

func NewAuth() (jwt.Auth, error)

NewAuth Create new auth context

func Operator

func Operator(m jwt.Auth) gin.HandlerFunc

Operator is user is admin

func SystemAdmin

func SystemAdmin(m jwt.Auth) gin.HandlerFunc

SystemAdmin is user is system admin

Types

type Role

type Role = user.Role

type User

type User = user.User

Jump to

Keyboard shortcuts

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