book

package
v0.0.0-...-eeeaefc Latest Latest
Warning

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

Go to latest
Published: May 8, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseId

func ParseId(idOrUrl string) (string, error)

Types

type Book

type Book struct {
	Url   string
	Id    string
	Title string
	Pages []Page
}

func Get

func Get(idOrUrl string) (*Book, error)

func (*Book) FindAllImages

func (b *Book) FindAllImages() []PageImage

type DownloadedImage

type DownloadedImage struct {
	PageNumber   int
	ImageNumber  int
	OverallOrder int
	Url          string
	FullPath     string
}

type Page

type Page struct {
	Number       int
	ThumbnailUrl string
	ImageUrls    []string
}

type PageImage

type PageImage struct {
	PageNumber   int
	ImageNumber  int
	OverallOrder int
	Url          string
}

func (*PageImage) Download

func (i *PageImage) Download(ctx context.Context, outputFolder string) (*DownloadedImage, error)

Jump to

Keyboard shortcuts

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