gin_context

package
v1.8.2 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: MIT Imports: 8 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeviceFromHeader

func DeviceFromHeader(r http.Header) *contexti.DeviceInfo

Types

type Context

type Context = contexti.RequestContext[*gin.Context]

func ContextFromContext

func ContextFromContext(ctx context.Context) *Context

func ContextFromRequest

func ContextFromRequest(req *gin.Context, tracing bool) (*Context, trace.Span)

type GinContext

type GinContext contexti.RequestContext[*gin.Context]

func (*GinContext) SendHeader

func (c *GinContext) SendHeader(md metadata.MD) error

func (*GinContext) SetCookie

func (c *GinContext) SetCookie(v string) error

func (*GinContext) SetHeader

func (c *GinContext) SetHeader(md metadata.MD) error

func (*GinContext) SetTrailer

func (c *GinContext) SetTrailer(md metadata.MD) error

func (*GinContext) WriteHeader

func (c *GinContext) WriteHeader(k, v string) error

Jump to

Keyboard shortcuts

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