Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GuardAction ¶
GuardAction integrates any cost.Reserver with a Kernel action. The adapter reserves before execution, releases on failure/cancel/panic, and records a successful reported cost. Terminal accounting is deliberately isolated from the request context: Commit and Release use a fresh background context with a five-second timeout, so a canceled request cannot strand a distributed reservation. Applications that need terminal errors returned to their caller should use cost.Reserver directly rather than a void hook.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.