store

package
v0.10.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 20, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package store provides crash-safe writes for small local metadata records.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Append

func Append(path string, data []byte) error

Append durably appends records to a file, creating it if necessary. A newly created file's directory entry is synced before Append returns.

func Bytes

func Bytes(path string, data []byte, mode os.FileMode) error

func Read

func Read(path string, dst any) error

func RenameInDirectory added in v0.10.0

func RenameInDirectory(tmp, path string) error

RenameInDirectory publishes a synced temporary file in the same directory. A sync failure is returned even though the rename may already be visible.

func Write

func Write(path string, value any) error

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL