state

package
v0.0.0-...-10e2fbd Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2023 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Read

func Read(path string) ([]byte, error)

func UpdateHandler

func UpdateHandler(handler Handler)

func Write

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

Types

type Handler

type Handler interface {
	Write(path string, data []byte) error
	Read(path string) ([]byte, error)
	String() string
}

func NewFSHandler

func NewFSHandler(stateDir string) Handler

Jump to

Keyboard shortcuts

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