data

package
v2.0.35 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2024 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DataManager

type DataManager interface {
	Load(file string) ([]byte, error)
	Store(file string, data any) error
	LoadTempFile(file string) ([]byte, error)
	StoreTempFile(file string, data any) error
}

func New

func New(fs embed.FS, options ...DataOption) DataManager

type DataOption

type DataOption func(*dataManagerImpl)

func WithFsDir

func WithFsDir(fsDir string) DataOption

func WithTempDir

func WithTempDir(tempDir string) DataOption

Jump to

Keyboard shortcuts

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