state

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package state provides error constructors for runtime state persistence.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load(cause error) error

Load wraps a state-loading failure.

Parameters:

  • cause: the underlying error from loading state.

Returns:

  • error: "loading state: <cause>"

func ReadingDir

func ReadingDir(cause error) error

ReadingDir wraps a state directory read failure.

Parameters:

  • cause: the underlying error from reading the directory.

Returns:

  • error: "reading state directory: <cause>"

func Save

func Save(cause error) error

Save wraps a state-saving failure.

Parameters:

  • cause: the underlying error from saving state.

Returns:

  • error: "saving state: <cause>"

Types

This section is empty.

Jump to

Keyboard shortcuts

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