content

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewContext

func NewContext(ctx context.Context, rc *RequestContext) context.Context

NewContext 创建新的上下文

Types

type RequestContext

type RequestContext struct {
	RequestQuery *datatypes.JSON `json:"request_query"`
	RequestBody  *datatypes.JSON `json:"request_body"`
	// contains filtered or unexported fields
}

func FromContext

func FromContext(ctx context.Context) *RequestContext

FromContext 从标准 context 获取

func FromGin

func FromGin(c *gin.Context) *RequestContext

FromGin 直接从 gin.Context 获取自定义上下文

Jump to

Keyboard shortcuts

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