ginctx

package
v1.16.0 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeviceFromHeader

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

Types

type Context

type Context = reqctx.Context[*gin.Context]

func FromContextValue added in v1.16.0

func FromContextValue(ctx context.Context) *Context

func FromRequest added in v1.16.0

func FromRequest(req *gin.Context) *Context

type GinContext

type GinContext 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