thumbnail

package
v0.0.0-...-47e11bc Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2022 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Path     string
	Prefix   string
	Download func(*backup.Manga) ([]byte, string, error)
	GetReq   func(*backup.Manga) (*http.Request, error)
	Filename func(manga *backup.Manga) string
}

type ID

type ID struct {
	Source int64
	Url    string
}

type Thumbnail

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

func New

func New(config Config) *Thumbnail

func (*Thumbnail) Clean

func (t *Thumbnail) Clean()

func (*Thumbnail) DownloadThumbnail

func (t *Thumbnail) DownloadThumbnail(manga *backup.Manga) (string, error)

func (*Thumbnail) DownloadThumbnails

func (t *Thumbnail) DownloadThumbnails(mangas []*backup.Manga, returnError bool) (map[ID]string, error)

func (*Thumbnail) Root

func (t *Thumbnail) Root(_ *graph.Graph, b interface{}) error

func (*Thumbnail) Schema

func (t *Thumbnail) Schema(g *graph.Graph) error

func (*Thumbnail) Worker

func (t *Thumbnail) Worker(ctx context.Context, g *graph.Graph) error

Jump to

Keyboard shortcuts

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