utils

package
v0.57.4 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const AuthenticatedClientKey = ContextKey("authenticated_client")

AuthenticatedClientKey is the key used in the request context to pass the client to metrics

Variables

This section is empty.

Functions

func CatchPanic

func CatchPanic(ctx context.Context)

CatchPanic prevents a panic from escaping and allows us to log an error for it

Types

type ContextKey added in v0.57.3

type ContextKey string

ContextKey this type is created to avoid the linting error: SA1029: should not use built-in type string as key for value; define your own type to avoid collisions (staticcheck)

Jump to

Keyboard shortcuts

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