context

package
v2.52.5 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2026 License: CC0-1.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateAsyncContext added in v2.21.14

func CreateAsyncContext(ctx context.Context) context.Context

func Ctx added in v2.41.0

func Ctx(ctx ...context.Context) *zerolog.Logger

func GetJWT

func GetJWT(ctx context.Context) *entity.JWTClaimData

func GetNotif

func GetNotif(ctx context.Context) notifications.Platforms

func GetNotifDestination

func GetNotifDestination(ctx context.Context) string

func Log added in v2.41.0

func Log(ctx ...context.Context) *zerolog.Logger

func NewLog added in v2.41.0

func NewLog(newRelicApp *newrelic.Application)

func PathParam added in v2.52.0

func PathParam[T any](ctx context.Context, name string) T

func PathParams added in v2.52.0

func PathParams(ctx context.Context) map[string]string

func QueryParams added in v2.52.0

func QueryParams[T any](ctx context.Context) *T

func RequestBody added in v2.52.0

func RequestBody[T any](ctx context.Context) *T

func SetJWT

func SetJWT(req *http.Request, jwtData *entity.JWTClaimData)

func SetNotif

func SetNotif(req *http.Request, slack notifications.Platforms)

func SetNotifDestination

func SetNotifDestination(req *http.Request, destination string)

func SetPathParams added in v2.52.0

func SetPathParams(ctx context.Context, val map[string]string) context.Context

func SetQueryParams added in v2.52.0

func SetQueryParams(ctx context.Context, val any) context.Context

func SetRequestBody added in v2.52.0

func SetRequestBody(ctx context.Context, val any) context.Context

Types

type JwtContext added in v2.11.5

type JwtContext struct{}

Jump to

Keyboard shortcuts

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