Documentation
¶
Overview ¶
Package ratewindow owns the shared exact timestamp domain and per-key window phase for rate authorities. Go adapters and the Redis script apply the same arithmetic, so every authority sharing a key agrees on its window boundaries.
Index ¶
Constants ¶
View Source
const MaxTimestamp int64 = 1<<53 - 1
MaxTimestamp is the greatest exact integer shared by Go and Redis Lua numbers.
Variables ¶
This section is empty.
Functions ¶
func End ¶
End returns the end of the window containing now, for windows starting at offset + n*window. The result is in (now, now+window].
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.