ctxutil

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: May 27, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package ctxutil provides context helpers for logger and source token only. DO NOT add new context helpers here - it causes import cycles. Other packages should define their own context helpers (see src/overrides/context.go).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetLogger

func GetLogger(ctx context.Context) *zap.Logger

Panics if no logger is found - this enforces proper initialization.

func GetSourceToken

func GetSourceToken(ctx context.Context) string

func GetTempDir

func GetTempDir(ctx context.Context) string

func SetLogger

func SetLogger(ctx context.Context, logger *zap.Logger) context.Context

func SetSourceToken

func SetSourceToken(ctx context.Context, token string) context.Context

func SetTempDir

func SetTempDir(ctx context.Context, dir string) context.Context

Types

This section is empty.

Jump to

Keyboard shortcuts

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