auth

package
v5.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package auth 验证类的中间件

Index

Constants

View Source
const ValueKey keyType = 0

ValueKey 保存于 context 中的值的名称

所有的验证中间件,在验证成功之后,都会将一个值附加在 r.Context() 之上,可以通过 ValueKey 获取其相应的值。

Variables

This section is empty.

Functions

func Value

func Value(r *http.Request) interface{}

Value 从 r 获取值

func WithValue

func WithValue(r *http.Request, v interface{}) *http.Request

WithValue 将 v 写入到 r

Types

This section is empty.

Directories

Path Synopsis
Package basic 实现 Basic 校验 https://tools.ietf.org/html/rfc7617
Package basic 实现 Basic 校验 https://tools.ietf.org/html/rfc7617

Jump to

Keyboard shortcuts

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