services

package
v0.0.0-...-e3e5b5f Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2024 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BoundRebellionPassword

func BoundRebellionPassword(app fyne.App) binding.String

func BoundRebellionUsername

func BoundRebellionUsername(app fyne.App) binding.String

Types

type AppServices

type AppServices struct {
	Downloader *Downloader
	Exporter   *Exporter
	Scanner    *Scanner
	Prefs      *Prefs
}

func NewAppServices

func NewAppServices(a fyne.App) *AppServices

type Downloader

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

func NewDownloader

func NewDownloader() *Downloader

func (*Downloader) DownloadAllProgs

func (d *Downloader) DownloadAllProgs(ctx context.Context, sourceDir, username, password string) error

func (*Downloader) ProgList

func (d *Downloader) ProgList(ctx context.Context, username, password string) ([]downloadApi.DigitalComic, error)

type Exporter

type Exporter struct {
}

func NewExporter

func NewExporter() *Exporter

func (*Exporter) Export

func (e *Exporter) Export(ctx context.Context, stories []*api2.Story, sourceDir, exportDir, filename string) error

type Prefs

type Prefs struct {
	BoundSourceDir binding.String
	BoundExportDir binding.String
	// contains filtered or unexported fields
}

func NewPrefs

func NewPrefs(a fyne.App) *Prefs

func (*Prefs) ExportDirectory

func (p *Prefs) ExportDirectory() string

func (*Prefs) RebellionDetails

func (p *Prefs) RebellionDetails() (string, string)

func (*Prefs) SourceDirectory

func (p *Prefs) SourceDirectory() string

type Scanner

type Scanner struct {
}

func NewScanner

func NewScanner() *Scanner

func (*Scanner) Scan

func (s *Scanner) Scan(path string) []*api2.Story

Jump to

Keyboard shortcuts

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