Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Book ¶
type Book struct { ID string Path string Title string Author string Description string Series string SeriesIndex int ModTime time.Time }
Book represents an ebook. It's the main structure of this application
type BookWithCover ¶
BookWithCover wraps a Book to add cover image information
type EpubLoader ¶
type EpubLoader struct{}
EpubLoader is a MetadataLoader extracting metadata from EPUB files
func (*EpubLoader) GetModTime ¶ added in v0.3.0
func (loader *EpubLoader) GetModTime(path string) (time.Time, error)
GetModTime returns file modification time, without actually loading the epub.
func (*EpubLoader) Load ¶
func (loader *EpubLoader) Load(path string) (*BookWithCover, error)
Load will extract epub metadata
type MetadataLoader ¶
type MetadataLoader interface { Load(filepath string) (*BookWithCover, error) GetModTime(filepath string) (time.Time, error) }
MetadataLoader describe objects able to retrieve metadata from a file
Click to show internal directories.
Click to hide internal directories.