gincontext

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewContext

func NewContext(ctx *gin.Context) context.Context

NewContext put gin data into context

Types

type GinData

type GinData struct {
	Form        *multipart.Form
	Header      http.Header
	Accepted    []string
	ContentType string
	ClientIP    string
	RemoteIP    string
	UserAgent   string
}

func FromContext

func FromContext(ctx context.Context) (data *GinData, ok bool)

FromContext extract gin data from context

Jump to

Keyboard shortcuts

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