Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppendLineLocked ¶
AppendLineLocked appends exactly one line to a file with a cross-process lock. The caller provides raw bytes for one record; this function appends a trailing newline and fsyncs the file before returning.
func WithFileLock ¶ added in v1.7.0
WithFileLock serializes a read/validate/write critical section across processes using the same lock-file protocol as AppendLineLocked.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.