rpc

package
v0.0.0-...-4ae7f04 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Client *rpc.Client

Client is a point to rpc.Client

Functions

func Init

func Init() error

Init function initialize rpc client

Types

type Chapter

type Chapter struct {
	URL      string            `json:"url"`
	Title    string            `json:"title"`
	Ctitle   string            `json:"ctitle"`
	Pictures map[string]string `json:"pictures"`
}

Chapter contains chapter informations

func DownloadChapter

func DownloadChapter(url, path string) (*Chapter, error)

DownloadChapter function remote call Download.Chapter

type Comic

type Comic struct {
	URL      string            `json:"url"`
	Title    string            `json:"title"`
	Summary  string            `json:"summary"`
	Cover    string            `json:"cover"`
	Chapters map[string]string `json:"chapters"`
	Indexes  []string          `json:"indexes"`
	Latest   string            `json:"latest"`
	Source   string            `json:"source"`
}

Comic contains comic informations

func DownloadComic

func DownloadComic(website, comic string) (*Comic, error)

DownloadComic function remote call Download.Comic

type Parameter

type Parameter struct {
	Website string   `json:"website"`
	Comic   string   `json:"comic"`
	Chapter string   `json:"chapter"`
	Path    string   `json:"path"`
	Latest  string   `json:"latest"`
	URLs    []string `json:"urls"`
}

Parameter contains all request actions

type Update

type Update struct {
	Chapters map[string]string `json:"chapters"`
	Indexes  []string          `json:"indexes"`
	Latest   string            `json:"latest"`
}

Update contains updated information

func UpdateComic

func UpdateComic(url string, latest string) (*Update, error)

UpdateComic function remote call Download.Update

Jump to

Keyboard shortcuts

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