Documentation
¶
Overview ¶
Package throttle is a persistent, cross-process circuit-breaker. An agent invokes a fresh rivr process per call, so an in-memory timer is a no-op — state lives in $XDG_STATE_HOME/rivr/. Default behavior is FAIL-FAST (a hung CLI deadlocks an agent loop); waiting is opt-in. Used to back off after a provider quota/block response so the next process doesn't waste a credit or deepen a block. See contract / cli-implement §1.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Clear ¶
func Clear(provider string)
Clear removes any active block (e.g. after a successful request).
Types ¶
Click to show internal directories.
Click to hide internal directories.