Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetPersonsString ¶
Types ¶
type Audiobook ¶
type Audiobook struct { Path string `json:"path" toml:",omitempty"` Title string `json:"title"` Subtitle string `json:"subtitle" toml:",omitempty"` Authors []string `json:"authors"` Description *description.Description `json:"description,omitempty" toml:",omitempty"` ReleaseDate *toml.LocalDate `json:"releaseDate,omitempty" toml:",omitempty"` Genres []Genre `json:"genres,omitempty" toml:",omitempty"` Series *Series `json:"series,omitempty" toml:",omitempty"` Narrators []string `json:"narrators" toml:",omitempty"` Tags []string `json:"tags,omitempty" toml:",omitempty"` Duration time.Duration `json:"duration" toml:",omitempty"` FileSize uint64 `json:"fileSize" toml:",omitempty"` MIMEType string `json:"mimeType" toml:",omitempty"` }
Audiobook - representation of a book.
func NewBook ¶
func NewBook(title string, desc *description.Description, authors []string, releaseDate *toml.LocalDate, genreList []Genre, series *Series) Audiobook
func (*Audiobook) GetNarrator ¶
type Genre ¶
type Genre uint8
Genre - representation of genres of books.
func ParseGenre ¶
Convert a string to a Genre, returns an error if the string is unknown.
func (Genre) MarshalText ¶
func (*Genre) UnmarshalText ¶
Click to show internal directories.
Click to hide internal directories.