store

package
v0.0.0-...-5a58481 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

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

Store represents the RocksDB store

func NewStore

func NewStore(dbPath string) (*Store, error)

NewStore initializes and returns a new Store

func (*Store) Close

func (s *Store) Close()

Close closes the store and releases the database resources

func (*Store) DeleteItem

func (s *Store) DeleteItem(id string) error

DeleteItem

func (*Store) GetItem

func (s *Store) GetItem(id string) ([]byte, error)

Get

func (*Store) GetPrefix

func (s *Store) GetPrefix(prefix string) ([][]byte, error)

GetPrefix

func (*Store) SaveItem

func (s *Store) SaveItem(prefix string, id string, data []byte) (string, error)

Save

Jump to

Keyboard shortcuts

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