middleware

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2019 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Copyright 2019 Axetroy. All rights reserved. MIT license.

Copyright 2019 Axetroy. All rights reserved. MIT license.

Copyright 2019 Axetroy. All rights reserved. MIT license.

Index

Constants

This section is empty.

Variables

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

Functions

func AuthPayPassword

func AuthPayPassword(context *gin.Context)

交易密码的验证中间件

func Authenticate

func Authenticate(isAdmin bool) gin.HandlerFunc

Token 验证中间件

func CORS

func CORS() gin.HandlerFunc

func Common

func Common(context *gin.Context)

Types

This section is empty.

Jump to

Keyboard shortcuts

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