parser

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: May 29, 2024 License: BSD-3-Clause Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AudioParser

type AudioParser struct{}

Handles parsing of audiobooks from an unstructured archive format containing audio files, such as ZAB (Zipped Audio Book) or a simple ZIP. It can also work for a standalone audio file.

func (AudioParser) Parse

func (p AudioParser) Parse(asset asset.PublicationAsset, fetcher fetcher.Fetcher) (*pub.Builder, error)

Parse implements PublicationParser

type ImageParser

type ImageParser struct{}

Parses an image–based Publication from an unstructured archive format containing bitmap files, such as CBZ or a simple ZIP. It can also work for a standalone bitmap file.

func (ImageParser) Parse

func (p ImageParser) Parse(asset asset.PublicationAsset, fetcher fetcher.Fetcher) (*pub.Builder, error)

Parse implements PublicationParser

type PublicationParser

type PublicationParser interface {
	Parse(asset asset.PublicationAsset, f fetcher.Fetcher) (*pub.Builder, error)
}

type WebPubParser

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

func NewWebPubParser

func NewWebPubParser(client *http.Client) WebPubParser

func (WebPubParser) Parse

func (p WebPubParser) Parse(asset asset.PublicationAsset, fetcher fetcher.Fetcher) (*pub.Builder, error)

Parse implements PublicationParser

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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