client

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Fb2  = "fb2"
	Epub = "epub"
	Mobi = "mobi"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DownloadResult

type DownloadResult struct {
	Name string
	File []byte
}

type FlibustaClient

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

func FromEnv

func FromEnv() (*FlibustaClient, error)

func (*FlibustaClient) Download

func (c *FlibustaClient) Download(id string, bookFormat string) (result *DownloadResult, err error)

func (*FlibustaClient) Search

func (c *FlibustaClient) Search(searchQuery string) (result []ListItem, err error)

type ListItem

type ListItem struct {
	Title   string
	Authors []string
	ID      string
}

func ParseSearch

func ParseSearch(stream io.Reader) (result []ListItem, err error)

func (*ListItem) String

func (item *ListItem) String() string

Jump to

Keyboard shortcuts

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