middleware

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: May 26, 2020 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

Copyright 2019-2020 Axetroy. All rights reserved. MIT license.

Copyright 2019-2020 Axetroy. All rights reserved. MIT license.

Copyright 2019-2020 Axetroy. All rights reserved. MIT license.

Copyright 2019-2020 Axetroy. All rights reserved. MIT license.

Index

Constants

This section is empty.

Variables

View Source
var (
	PayPasswordHeader = "X-Pay-Password"
	SignatureHeader   = "X-Signature"
)
View Source
var (
	ContextUidField = "uid"
)

Functions

func AuthPayPasswordNew added in v0.3.0

func AuthPayPasswordNew(c iris.Context)

交易密码的验证中间件

func AuthenticateNew added in v0.3.0

func AuthenticateNew(isAdmin bool) iris.Handler

Token 验证中间件

func CORS

func CORS() iris.Handler

func Common

func Common() iris.Handler

func Ip added in v0.4.0

func Ip() iris.Handler

func Permission added in v0.3.0

func Permission(accessions ...accession.Accession) iris.Handler

根据 RBAC 鉴权的中间件

Types

This section is empty.

Jump to

Keyboard shortcuts

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