middleware

package
v0.1.23 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Casbin

func Casbin() iris.Handler

Casbin Casbin 权鉴中间件

func Check

func Check(r *http.Request, userId string) (bool, error)

Check checks the username, request's method and path and returns true if permission grandted otherwise false.

func MultiHandler

func MultiHandler() iris.Handler

*

  • 验证 multi
  • @method MultiHandler

func OperationRecord

func OperationRecord() iris.Handler

OperationRecord 操作日志中间件

Types

This section is empty.

Jump to

Keyboard shortcuts

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