context

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2020 License: Apache-2.0 Imports: 3 Imported by: 29

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithContext

func WithContext(req *http.Request, rctx *ReqContext) *http.Request

WithContext 携带请求上下文

Types

type ReqContext

type ReqContext struct {
	PS       httprouter.Params
	AuthInfo interface{}
}

ReqContext context

func GetContext

func GetContext(req *http.Request) *ReqContext

GetContext 获取请求上下文中的数据

Jump to

Keyboard shortcuts

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