metadata

package
v0.0.0-...-d0df922 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BookMetadata

type BookMetadata struct {
	Asin            string    `json:"asin"`
	Authors         []Person  `json:"authors"`
	Copyright       *int      `json:"copyright,omitempty"`
	Description     string    `json:"description"`
	FormatType      string    `json:"formatType"`
	Genres          []Genre   `json:"genres"`
	Image           *string   `json:"image,omitempty"`
	IsAdult         *bool     `json:"isAdult,omitempty"`
	ISBN            *string   `json:"isbn,omitempty"`
	Language        string    `json:"language"`
	LiteratureType  *string   `json:"literatureType,omitempty"`
	Narrators       []Person  `json:"narrators"`
	PublisherName   string    `json:"publisherName"`
	Rating          string    `json:"rating"`
	Region          string    `json:"region"`
	ReleaseDate     time.Time `json:"releaseDate"`
	RuntimeLength   int       `json:"runtimeLengthMin"`
	PrimarySeries   *Series   `json:"seriesPrimary,omitempty"`
	SecondarySeries *Series   `json:"seriesSecondary,omitempty"`
	Subtitle        *string   `json:"subtitle,omitempty"`
	Summary         string    `json:"summary"`
	Title           string    `json:"title"`
}

func (*BookMetadata) GenerateDirectoryName

func (md *BookMetadata) GenerateDirectoryName() (string, error)

func (BookMetadata) WriteOpf

func (md BookMetadata) WriteOpf(filename string) error

type Genre

type Genre struct {
	Name string `json:"name"`
	Asin string `json:"asin"`
	Type string `json:"type"`
}

type Person

type Person struct {
	Name string  `json:"name"`
	Asin *string `json:"asin,omitempty"`
}

type Series

type Series struct {
	Name     string  `json:"name"`
	Asin     *string `json:"asin,omitempty"`
	Position *string `json:"position,omitempty"`
}

Jump to

Keyboard shortcuts

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