contexts

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: May 1, 2023 License: MIT Imports: 5 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetContext2

func GetContext2(c *gin.Context) (context.Context, error)

GetContext2 函数把【*gin.Context】转换成【context.Context】

func GetGinContext

func GetGinContext(cc context.Context) (*gin.Context, error)

GetGinContext 函数把【context.Context】转换成【*gin.Context】

func SetupGinContext

func SetupGinContext(c *gin.Context) error

SetupGinContext 函数根据 gin.Context 初始化一个绑定的 context.Context

Types

This section is empty.

Jump to

Keyboard shortcuts

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