storage

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BoltStorage

type BoltStorage struct {
	// contains filtered or unexported fields
}

func NewBoltStorage

func NewBoltStorage(path string) (*BoltStorage, error)

func (*BoltStorage) Close

func (s *BoltStorage) Close() error

func (*BoltStorage) Delete

func (b *BoltStorage) Delete(key string) error

func (*BoltStorage) Load

func (b *BoltStorage) Load(key string) ([]byte, error)

func (*BoltStorage) Save

func (b *BoltStorage) Save(key string, newValue []byte, oldValue []byte) error

type FileStorage

type FileStorage struct {
	// contains filtered or unexported fields
}

func NewFileStorage

func NewFileStorage(dir string) (*FileStorage, error)

func (*FileStorage) Close

func (fs *FileStorage) Close() error

func (*FileStorage) Delete

func (fs *FileStorage) Delete(key string) error

func (*FileStorage) Load

func (fs *FileStorage) Load(key string) ([]byte, error)

func (*FileStorage) Save

func (fs *FileStorage) Save(key string, newValue []byte, oldValue []byte) error

Jump to

Keyboard shortcuts

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