itemstore

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ItemStore

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

func Load

func Load(r io.Reader) (*ItemStore, error)

func New

func New() *ItemStore

func (*ItemStore) Add

func (s *ItemStore) Add(b item.ItemV1) error

func (*ItemStore) All

func (s *ItemStore) All() []*item.ItemV1

func (*ItemStore) Get

func (s *ItemStore) Get(name string) *item.ItemV1

func (*ItemStore) Save

func (s *ItemStore) Save(w io.Writer) error

func (*ItemStore) Search

func (s *ItemStore) Search(query string, n int) ([]*item.ItemV1, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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