Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CBZ ¶
type CBZ struct { Info *comicinfo.ComicInfo Pages []Page // contains filtered or unexported fields }
CBZ represents a comic book
func (*CBZ) AppendPage ¶
AppendPage adds a page to the comic book
func (*CBZ) ComicInfo ¶
func (c *CBZ) ComicInfo() *comicinfo.ComicInfo
ComicInfo returns the comic info for the comic book
func (*CBZ) SetComicInfo ¶
func (c *CBZ) SetComicInfo(comicInfo *comicinfo.ComicInfo)
SetComicInfo sets the comic info for the comic book
type Compressor ¶
type Compressor interface { AddFile(filename string) (io.Writer, error) AddFileFromPath(filename, path string) error GetFile(filename string) (io.Reader, error) Close() error }
Compressor is the interface that wraps the basic methods for compressing files
func NewZIPCompressor ¶
func NewZIPCompressor(w io.Writer) Compressor
NewZIPCompressor creates a new ZIPCompressor
type Page ¶
Page represents a page in a comic book Keep in mind that the pages we store and the pages present in the ComicInfo may be different when opening files, since they may not be present in the ComicInfo file or the ComicInfo file may not be present at all.
type ZIPCompressor ¶
type ZIPCompressor struct {
// contains filtered or unexported fields
}
ZIPCompressor is a Compressor that uses the ZIP format
func (*ZIPCompressor) AddFileFromPath ¶
func (z *ZIPCompressor) AddFileFromPath(filename, path string) error
func (*ZIPCompressor) Close ¶
func (z *ZIPCompressor) Close() error
Click to show internal directories.
Click to hide internal directories.