model

package
v0.0.0-...-6573677 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2022 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CalibreBook

type CalibreBook struct {
	Id           int
	Uuid         string
	Publisher    string
	Size         int
	Identifiers  map[string]string
	Formats      []string
	Title        string
	Authors      []string
	AuthorSort   string `json:"author_sort"`
	Timestamp    Time3339
	PubDate      Time3339
	LastModified Time3339 `json:"last_modified"`
	Tags         []string
	Comments     string
	Languages    []string
	Cover        string
	SeriesIndex  *float64 `json:"series_index"`
}

func (*CalibreBook) FilePath

func (b *CalibreBook) FilePath() string

FilePath returns the path to the epub for the book, or empty string if not found.

func (*CalibreBook) Url

func (b *CalibreBook) Url() *url.URL

Url returns the source URL for the book, or nil if unavailable.

type Time3339

type Time3339 struct {
	time.Time
}

func NewTime3339

func NewTime3339(t time.Time) *Time3339

NewTime1339 returns a new Time3339. If the given time is zero time, use the current time instead.

func (*Time3339) String

func (t *Time3339) String() string

func (*Time3339) UnmarshalJSON

func (t *Time3339) UnmarshalJSON(bytes []byte) error

Jump to

Keyboard shortcuts

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