package
Version:
v1.63.1
Opens a new window with list of versions in this module.
Published: Jun 11, 2026
License: Apache-2.0
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
GetQueryCount returns the current value of the query counter from the context.
Returns 0 if no counter was initialized.
Increment atomically increments the query counter stored in ctx.
If no counter was initialized (e.g., in tests without middleware), this is a no-op.
Init stores a new atomic counter in the context and returns the new context.
Call this once per request (e.g., in middleware).
Source Files
¶
Click to show internal directories.
Click to hide internal directories.