models

package
v0.0.0-...-a3239b4 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Author

type Author struct {
	Name string
	Key  string
	ID   string
}

Author -- Author name and id

type Identifiers

type Identifiers struct {
	ISBN13       []string
	ISBN10       []string
	Amazon       []string
	ASIN         string
	KindleASIN   string
	Google       []string
	Gutenberg    []string
	Goodreads    []string
	Librarything []string
}

Identifiers -- book identifiers

type Metadata

type Metadata struct {
	ID             string
	Title          string
	SubTitle       string
	Author         string
	Authors        []Author
	Series         string
	Tags           string
	Ratings        string
	RatingsPercent string
	ReviewsCount   int
	RatingsSum     int
	RatingsCount   int
	URL            map[string]string
	Cover          string
	Covers         []string
	Identifiers    Identifiers
	PublishDate    string
	Publishers     []string
	PublishCountry string
	Description    string
	Subjects       string
	NumberOfPages  int
	Preview        string
	PhysicalFormat string
	IsEbook        string
	LanguageCode   string
	Legal          string

	ISBN string

	RAW interface{}
}

Metadata -- book metadata

func (Metadata) GetAuthors

func (m Metadata) GetAuthors() string

GetAuthors -- return the author(s)

type Work

type Work struct {
	Metadata
	Online map[string]Metadata
	Epub   *epub.EpubReaderCloser
	Error  error
}

Info -- Book info and metadata

Jump to

Keyboard shortcuts

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