store

package
v0.0.0-...-68ec1c9 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2024 License: Unlicense Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	PrimaryKey = []byte("primary-key")
)

Functions

This section is empty.

Types

type Store

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

func New

func New() *Store

func (*Store) Connect

func (s *Store) Connect(path string) (close func())

func (*Store) GetBytes

func (s *Store) GetBytes(pk uint64) (bytes []byte, err error)

func (*Store) PrimaryKey

func (s *Store) PrimaryKey() (num uint64)

func (*Store) SetBytes

func (s *Store) SetBytes(pk uint64, bytes []byte) error

Jump to

Keyboard shortcuts

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