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 ¶
- func GetLogger(ctx context.Context) *zap.Logger
- func GetSourceToken(ctx context.Context) string
- func GetTempDir(ctx context.Context) string
- func SetLogger(ctx context.Context, logger *zap.Logger) context.Context
- func SetSourceToken(ctx context.Context, token string) context.Context
- func SetTempDir(ctx context.Context, dir string) context.Context
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetSourceToken ¶
func GetTempDir ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.