Documentation
¶
Overview ¶
Package store provides crash-safe writes for small local metadata records.
Index ¶
Constants ¶
View Source
const TempPrefix = ".write-"
TempPrefix names Bytes' temporary files, which a crash can leave behind.
Variables ¶
This section is empty.
Functions ¶
func Append ¶
Append durably appends records to a file, creating it if necessary. A newly created file's directory entry is synced before Append returns.
func RemoveStaleTemps ¶ added in v0.11.0
RemoveStaleTemps deletes this package's temporary files in dir that are older than age. Younger files may belong to a write still in progress.
func RenameInDirectory ¶ added in v0.10.0
RenameInDirectory publishes a synced temporary file in the same directory. A sync failure is returned even though the rename may already be visible.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.