Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Agent ¶
type Agent struct { ID string `json:"id,omitempty"` Name string `json:"name,omitempty"` Aliases []string `json:"aliases,omitempty"` BirthDate date.Date `json:"birth_date,omitempty"` DeathDate date.Date `json:"death_date,omitempty"` Webpages []string `json:"webpages,omitempty"` }
Agent is a record for a human (Project Gutenberg calls these agents). This can be an author, editor, or illustrator.
type CompType ¶
type CompType int
CompType indicates the type of standalone compression in use (Note that some formats are inherently compressed.)
type EBook ¶
type EBook struct { ID string `json:"id,omitempty"` Publisher string `json:"publisher,omitempty"` Title string `json:"title,omitempty"` Creators []string `json:"creators,omitempty"` Illustrators []string `json:"illustrators,omitempty"` TableOfContents string `json:"table_of_contents,omitempty"` Language string `json:"language,omitempty"` Subjects []string `json:"subjects,omitempty"` Issued date.Date `json:"issued,omitempty"` DownloadCount int `json:"download_count,omitempty"` Rights string `json:"rights,omitempty"` Copyright string `json:"copyright,omitempty"` Edition string `json:"edition,omitempty"` Type string `json:"type,omitempty"` Files []PGFile `json:"files,omitempty"` Agents map[string]Agent `json:"agents,omitempty"` CopyrightDates []date.Date `json:"-"` Words *stringset.StringSet `json:"-"` }
EBook is the parsed and processed structure of an ebook object.
func (*EBook) ExtractWords ¶
func (e *EBook) ExtractWords()
ExtractWords retrieves a stringSet of individual words
func (*EBook) FullCreators ¶
FullCreators is a helper function for templates to extract the creator name(s)
type PGFile ¶
type PGFile struct { Location string `json:"location,omitempty"` Format string `json:"format,omitempty"` Comp CompType `json:"comp,omitempty"` FileSize int `json:"filesize,omitempty"` Modified date.Date `json:"modified,omitempty"` BookID string `json:"bookid,omitempty"` }
PGFile is the parsed and processed structure of an object within the Project Gutenberg data that corresponds to a single downloadable entity -- a particular version of the content.
Click to show internal directories.
Click to hide internal directories.