store

package
v0.0.0-...-f8624db Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2022 License: MIT Imports: 2 Imported by: 6

Documentation

Index

Constants

View Source
const (
	TitleTableAttributeName    = "Title"
	AuthorTableAttributeName   = "Author"
	CategoryTableAttributeName = "Category"
	FormatsTableAttributeName  = "Formats"
)

Variables

View Source
var (
	EmptyQueryErr = errors.New("empty query")
)

Functions

This section is empty.

Types

type Store

type Store interface {
	GetAll() ([]*models.Book, error)
	PutMany([]*models.Book) error
	Update(*models.Book, bool) (*models.Book, error)
	DeleteMany([]*models.Book, string) error
	Search(map[string]string) ([]*models.Book, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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