Documentation
¶
Overview ¶
Package paths resolves platform-specific directories for configuration and data files.
Index ¶
Constants ¶
View Source
const ( AppDirName = "notify" ConfigFileName = "notify-config.json" CooldownFileName = "cooldown.json" SilentFileName = "silent.json" LogFileName = "notify.log" DirPerm = 0755 // rwxr-xr-x — owner full, group/other read+execute FilePerm = 0644 // rw-r--r-- — owner read+write, group/other read-only )
Variables ¶
This section is empty.
Functions ¶
func AtomicWrite ¶ added in v0.2.11
AtomicWrite writes data to path via a temporary file + rename to avoid partial writes on crash. The parent directory is created if needed. Readers always see either the old or new contents, never a half-written file.
func CooldownKey ¶
CooldownKey returns the map key for a profile/action pair.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.