storage

package
v0.0.0-...-ee475d0 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileStore

type FileStore[K any] struct {
	// contains filtered or unexported fields
}

func NewFileStore

func NewFileStore[K any](path string, prefix string, reset func(*K)) *FileStore[K]

func (*FileStore[K]) Load

func (fs *FileStore[K]) Load(id int) (*K, error)

func (*FileStore[K]) Save

func (fs *FileStore[K]) Save(id int, data *K) error

Jump to

Keyboard shortcuts

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