Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetEnvAs ¶ added in v1.0.1
func GetEnvAs[T any](envVar string, deflt T, parser EnvParserFunc[T]) T
func LogDebugIfContextCancelled ¶ added in v0.3.26
LogDebugIfContextCanceled will ensure that LOG_LEVEL is set to debug if the context is canceled.
func NewDetachedContext ¶
NewDetachedContext produces a new context that has a separate cancellation mechanism from its parent. This should be used when having to continue using a context after it has been canceled, such as cleaning up Docker resources after the context has been canceled but want to keep work associated with the same trace.
Types ¶
type EnvParserFunc ¶ added in v1.0.1
Click to show internal directories.
Click to hide internal directories.