Documentation
¶
Overview ¶
Package testclock is a settable clock for tests that would otherwise sleep through a TTL, grace window or rate-limit window.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Use func(client any, now func() time.Time)
Use makes an *authkit.Client decide TTLs and grace windows by now; call it before the Client serves. Ephemeral state keeps the database clock. The root package sets it: hosts have no way to change the clock.
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.