mapdb

package
v0.0.0-...-a0c15bd Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2022 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MapDB

type MapDB struct {
	Inventory map[string]inventory.Book
}

func NewMapDB

func NewMapDB() *MapDB

func (MapDB) DeleteBook

func (m MapDB) DeleteBook(isbn string) error

func (MapDB) GetBook

func (m MapDB) GetBook(isbn string) (inventory.Book, error)

func (MapDB) ListInventory

func (m MapDB) ListInventory() ([]inventory.Book, error)

func (MapDB) Name

func (m MapDB) Name() string

func (MapDB) SaveBook

func (m MapDB) SaveBook(book inventory.Book) error

Jump to

Keyboard shortcuts

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