kindle

package
v0.0.0-...-9782d59 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const SQL_BOOK_ENTRIES string = "" /* 129-byte string literal not displayed */
View Source
const SQL_COLLECTION_ENTRIES string = "SELECT p_uuid, p_titles_0_nominal FROM Entries WHERE p_type = 'Collection'"

Variables

This section is empty.

Functions

This section is empty.

Types

type Book

type Book struct {
	UUID   string `db:"p_uuid"`
	CDEKey string `db:"p_cdeKey"`
}

type Books

type Books []*Book

func (Books) BookByCDEKey

func (b Books) BookByCDEKey(cde_key string) *Book

func (Books) BookByUUID

func (b Books) BookByUUID(uuid string) *Book

func (Books) BooksByCDEKeys

func (b Books) BooksByCDEKeys(cde_keys []string) Books

func (Books) CDEKeys

func (b Books) CDEKeys() []string

func (Books) IdxByUUID

func (b Books) IdxByUUID(uuid string) int

type CollEntry

type CollEntry struct {
	UUID  string `db:"p_uuid"`
	Title string `db:"p_titles_0_nominal"`
	Books Books
}

func (*CollEntry) Members

func (c *CollEntry) Members() []string

type Collection

type Collection []*CollEntry

func (Collection) IdxByTitle

func (c Collection) IdxByTitle(title string) int

func (Collection) IdxByUUID

func (c Collection) IdxByUUID(uuid string) int

type Commander

type Commander struct{}

func (*Commander) Purge

func (u *Commander) Purge(collection Collection) error

func (*Commander) Update

func (u *Commander) Update(collection Collection, isCcAware bool, unique map[string]int) error

type Entries

type Entries struct {
	Collection Collection
	Books      Books
	IsCcAware  bool
}

func NewEntries

func NewEntries(db_file string) (*Entries, error)

Jump to

Keyboard shortcuts

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