mirror

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Configuration

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

TODO: Make this persistent

type LegacyMirror

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

func NewLegacyMirror

func NewLegacyMirror(domain libgen.Domain) *LegacyMirror

func (*LegacyMirror) DownloadSelection

func (m *LegacyMirror) DownloadSelection(selectedBook book.Book, outputDirectory string, linkType string)

func (*LegacyMirror) SearchByAuthor

func (m *LegacyMirror) SearchByAuthor(query string) ([]book.Book, error)

func (*LegacyMirror) SearchByISBN added in v0.4.1

func (m *LegacyMirror) SearchByISBN(isbn string) ([]book.Book, error)

func (*LegacyMirror) SearchByTitle

func (m *LegacyMirror) SearchByTitle(query string) ([]book.Book, error)

func (*LegacyMirror) SetNumberOfResults added in v0.4.1

func (m *LegacyMirror) SetNumberOfResults(numberOfResults int)

type Mirror

type Mirror interface {
	SearchByTitle(query string) ([]book.Book, error)
	SearchByAuthor(author string) ([]book.Book, error)
	SearchByISBN(isbn string) ([]book.Book, error)
	DownloadSelection(book book.Book, outputDirectory string)
}

type NewMirror

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

Jump to

Keyboard shortcuts

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