middleware

package
v1.1.1-alpha7 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2021 License: Apache-2.0 Imports: 17 Imported by: 6

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 CrsAuth

func CrsAuth() context.Handler

CrsAuth 跨域中间件

func LoadTls added in v1.1.2

func LoadTls() iris.Handler

用https把这个中间件在router里面use一下就好

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