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 ¶
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)
Click to show internal directories.
Click to hide internal directories.