store

package
v0.0.0-...-10245c6 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2021 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrSlicePtrNeeded = errors.New("provided target must be a pointer to slice")
)

Functions

This section is empty.

Types

type ErrNotFound

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

func (*ErrNotFound) Error

func (e *ErrNotFound) Error() string

type Store

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

func New

func New(dir string, buckets ...string) (*Store, error)

func (*Store) Close

func (s *Store) Close() error

func (*Store) Create

func (s *Store) Create(key, id string, value interface{}) error

func (*Store) Delete

func (s *Store) Delete(key, id string) error

func (*Store) Read

func (s *Store) Read(key, id string, value interface{}) error

func (*Store) ReadAll

func (s *Store) ReadAll(key string, value interface{}) error

func (*Store) Update

func (s *Store) Update(key, id string, value interface{}) error

Jump to

Keyboard shortcuts

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