Discover Packages
github.com/Mavwarf/notify
internal
cooldown
package
Version:
v0.2.35
Opens a new window with list of versions in this module.
Published: Mar 1, 2026
License: MIT
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Check returns true if the given profile/action is still within its cooldown
window. A missing or unreadable state file is treated as "not on cooldown"
(fail-open).
func Record(profile, action string )
Record writes the current timestamp for the given profile/action.
Errors are printed to stderr but never fatal (best-effort).
Source Files
¶
Click to show internal directories.
Click to hide internal directories.