books

package
v0.0.0-...-9ae89d9 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Book

type Book struct {
	ID         string
	Filename   string
	Artists    []string
	Categories []string
	ModTime    time.Time
}

func (*Book) ParseFilename

func (book *Book) ParseFilename() error

func (*Book) ParsePath

func (book *Book) ParsePath(path string) error

type BookList

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

func NewBookList

func NewBookList(log logr.Logger, db *bbolt.DB) *BookList

func (*BookList) All

func (b *BookList) All() ([]Book, error)

func (*BookList) Get

func (b *BookList) Get(id string) (*Book, error)

func (*BookList) Register

func (b *BookList) Register(book Book) error

Jump to

Keyboard shortcuts

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