Documentation
¶
Index ¶
- func CreateAsyncContext(ctx context.Context) context.Context
- func Ctx(ctx ...context.Context) *zerolog.Logger
- func GetJWT(ctx context.Context) *entity.JWTClaimData
- func GetNotif(ctx context.Context) notifications.Platforms
- func GetNotifDestination(ctx context.Context) string
- func HTTPRequest(ctx context.Context) *http.Request
- func Log(ctx ...context.Context) *zerolog.Logger
- func NewLog(newRelicApp *newrelic.Application)
- func PathParam[T any](ctx context.Context, name string) T
- func PathParams(ctx context.Context) map[string]string
- func QueryParams[T any](ctx context.Context) *T
- func RequestBody[T any](ctx context.Context) *T
- func SetHTTPRequest(ctx context.Context, r *http.Request) context.Context
- func SetJWT(req *http.Request, jwtData *entity.JWTClaimData)
- func SetNotif(req *http.Request, slack notifications.Platforms)
- func SetNotifDestination(req *http.Request, destination string)
- func SetPathParams(ctx context.Context, val map[string]string) context.Context
- func SetQueryParams(ctx context.Context, val any) context.Context
- func SetRequestBody(ctx context.Context, val any) context.Context
- type JwtContext
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateAsyncContext ¶ added in v2.21.14
func GetNotifDestination ¶
func NewLog ¶ added in v2.41.0
func NewLog(newRelicApp *newrelic.Application)
func QueryParams ¶ added in v2.52.0
func RequestBody ¶ added in v2.52.0
func SetHTTPRequest ¶ added in v2.52.12
func SetNotifDestination ¶
func SetPathParams ¶ added in v2.52.0
func SetQueryParams ¶ added in v2.52.0
Types ¶
type JwtContext ¶ added in v2.11.5
type JwtContext struct{}
Click to show internal directories.
Click to hide internal directories.