Documentation
¶
Index ¶
Constants ¶
View Source
const ( ExportFlag_CompressBook = 1 << iota ExportFlag_CompressVolumes )
Variables ¶
View Source
var ( UnsupportedArchiveFormatError = errors.New("unsupported archive format") RequiredToolNotInstalled = errors.New("required tool not installed") )
Functions ¶
func Decompress ¶
func Decompress(archPath string, allocator *TempDirAllocator) (string, error)
Types ¶
type Book ¶
type Book struct { Node *Node Volumes map[int]*Volume VolumeCount int // contains filtered or unexported fields }
func (*Book) Export ¶
func (self *Book) Export(path string, config ExportConfig, allocator *TempDirAllocator) error
type ExportConfig ¶
type ExportConfig struct { Flags ExportFlags PageTemplate string VolumeTemplate string BookTemplate string Workers int }
type ExportFlags ¶
type ExportFlags int
type TempDirAllocator ¶
type TempDirAllocator struct {
// contains filtered or unexported fields
}
func (*TempDirAllocator) Cleanup ¶
func (self *TempDirAllocator) Cleanup()
func (*TempDirAllocator) TempDir ¶
func (self *TempDirAllocator) TempDir() (string, error)
Click to show internal directories.
Click to hide internal directories.