limiter
*v0.Limiterlimiter starts at 0.5 tokens/block (one every two blocks), capacity 5.
- OID
- 092a19…c164:4
limiter details
Allow
func() boolAllow consumes one token for the calling realm/user at the current block height and reports whether the request is permitted. Returns false (and consumes nothing) when the caller's bucket is empty.
- OID
- 092a19…c164:8
Allow details
SetConfig
func(rate float64, burst float64)SetConfig updates the shared rate (tokens per block) and burst (capacity). rate is clamped to >= 0, burst to >= 1.
- OID
- 092a19…c164:10
SetConfig details
Tokens
func(addr .uverse.address) intTokens reports how many whole tokens \`addr\` has available at the current block height, without mutating any state.
- OID
- 092a19…c164:11
Tokens details
ftoa
func(f float64) string- OID
- 092a19…c164:12
ftoa details
Render
func(path string) stringRender shows the limiter config and a table of known callers with their current tokens and last-seen height. Path "/addr/\<address>" focuses one caller.
- OID
- 092a19…c164:13