services

package
v0.0.0-...-155deff Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2025 License: MIT Imports: 21 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
	Storage    *Storage
}

func NewAppServices

func NewAppServices(a fyne.App) *AppServices

type Downloader

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

func NewDownloader

func NewDownloader(storageRoot string) *Downloader

func (*Downloader) DownloadAllIssues

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

func (*Downloader) DownloadIssue

func (d *Downloader) DownloadIssue(ctx context.Context, issue download.DigitalComic, targetDir, username, password string) error

func (*Downloader) GetIssuesList

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

type Exporter

type Exporter struct {
}

func NewExporter

func NewExporter() *Exporter

func (*Exporter) Export

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

type Prefs

type Prefs struct {
	ProgSourceDir     binding.String
	MegazineSourceDir 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) MegSourceDirectory

func (p *Prefs) MegSourceDirectory() string

func (*Prefs) ProgSourceDirectory

func (p *Prefs) ProgSourceDirectory() string

func (*Prefs) RebellionDetails

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

type Scanner

type Scanner struct {
}

func NewScanner

func NewScanner() *Scanner

func (*Scanner) Scan

func (s *Scanner) Scan(paths []string, knownTitles, skipTitles []string) []*exporterApi.Story

type Storage

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

func NewStorage

func NewStorage(storageRoot string) *Storage

func (*Storage) ReadIssues

func (s *Storage) ReadIssues() []api.Downloadable

func (*Storage) ReadKnownTitles

func (s *Storage) ReadKnownTitles() []string

func (*Storage) ReadSkipTitles

func (s *Storage) ReadSkipTitles() []string

func (*Storage) ReadStories

func (s *Storage) ReadStories() []api.Story

func (*Storage) SaveIssues

func (s *Storage) SaveIssues(progs []api.Downloadable) error

func (*Storage) StoreStories

func (s *Storage) StoreStories(stories []api.Story) error

Jump to

Keyboard shortcuts

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