store

package
v0.0.0-...-de494ec Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2023 License: MIT Imports: 4 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
}

func NewStore

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

func NewStoreMemory

func NewStoreMemory() (*Store, error)

func (*Store) Clear

func (b *Store) Clear() error

func (*Store) Close

func (b *Store) Close()

func (*Store) Get

func (b *Store) Get(key []byte) ([]byte, error)

func (*Store) Iterate

func (b *Store) Iterate(f func(key []byte, value []byte))

func (*Store) Set

func (b *Store) Set(value []byte, t string) ([]byte, error)

func (*Store) Stream

func (b *Store) Stream(f func(key []byte, value []byte)) error

Jump to

Keyboard shortcuts

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