cbzpages

package
v0.0.21 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache struct {
	// contains filtered or unexported fields
}

Cache manages extracted CBZ page images.

func NewCache

func NewCache(dir string) *Cache

NewCache creates a new Cache with the given directory.

func (*Cache) GetPage

func (c *Cache) GetPage(cbzPath string, fileID int, pageNum int) (cachedPath string, mimeType string, err error)

GetPage returns the path to a cached page image, extracting if necessary. pageNum is 0-indexed.

func (*Cache) Invalidate

func (c *Cache) Invalidate(fileID int) error

Invalidate removes all cached pages for a file.

Jump to

Keyboard shortcuts

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