Documentation
¶
Overview ¶
Package ctxkit provides small context helpers shared between celeris root-package and sub-packages that cannot import the root due to circular-dependency constraints.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ReleaseContext func(c any)
ReleaseContext is registered by the celeris package at init time. internal/conn/h1.go uses it to release cached contexts on connection close.
Functions ¶
func WithWorkerID ¶ added in v1.4.0
WithWorkerID annotates ctx with the event-loop worker ID that owns the connection. Engines call this at accept-time so per-request handlers can thread the worker affinity through driver calls without the engines and the celeris root package coupling directly.
id is the worker's numeric ID (0..NumWorkers-1). A worker ID of -1 means no meaningful worker identity (e.g. the std engine where Go's scheduler picks the goroutine).
Types ¶
This section is empty.