repo

package
v0.0.0-...-08022fe Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repo

type Repo struct {
	AuthorsCache map[book.Author]int64
	// contains filtered or unexported fields
}

func GetStorage

func GetStorage(path string) *Repo

func (*Repo) Add

func (r *Repo) Add(record *book.Book) error

func (*Repo) Close

func (r *Repo) Close()

func (*Repo) GetAuthors

func (r *Repo) GetAuthors() ([]book.Author, error)

func (*Repo) GetBooks

func (r *Repo) GetBooks() ([]string, error)

func (*Repo) GetBooksByAuthorID

func (r *Repo) GetBooksByAuthorID(id int64) ([]string, error)

func (*Repo) List

func (r *Repo) List() error

func (*Repo) Search

func (r *Repo) Search() error

Jump to

Keyboard shortcuts

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