Documentation ¶
Overview ¶
Package cover handles book cover storage All covers are stored as PNG, with names derived from book ID
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FSStore ¶
type FSStore struct {
// contains filtered or unexported fields
}
FSStore is an ImageStore which stores images on the filesystem
func (*FSStore) GetThumbnail ¶
GetThumbnail retrieves the thumbnail for book with given ID
type ImageStore ¶
type ImageStore interface { SaveCover(id string, img image.Image) error GetCover(id string, w io.Writer) (written int64, err error) GetThumbnail(id string, w io.Writer) (written int64, err error) }
ImageStore is a common interface to manipulate book covers. It covers (pun intended) saving/retrieving images and thumbnails
Click to show internal directories.
Click to hide internal directories.