services

package
v0.0.0-...-3f4f980 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppServices

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

func NewAppServices

func NewAppServices(ctx context.Context, a fyne.App) *AppServices

type Downloader

type Downloader struct {
	IsDownloading  binding.Bool
	BoundSourceDir binding.String
	BoundUsername  binding.String
	BoundPassword  binding.String
	// contains filtered or unexported fields
}

func NewDownloader

func NewDownloader(ctx context.Context, srcDir, username, password binding.String) *Downloader

func (*Downloader) Download

func (d *Downloader) Download() error

type Exporter

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

func NewExporter

func NewExporter(ctx context.Context, src, export binding.String) *Exporter

func (*Exporter) Export

func (e *Exporter) Export(stories []*api2.Story, filename string) error

type Scanner

type Scanner struct {
	IsScanning   binding.Bool
	BoundStories binding.UntypedList
	// contains filtered or unexported fields
}

func NewScanner

func NewScanner(ctx context.Context) *Scanner

func (*Scanner) Scan

func (s *Scanner) Scan(path string)

Jump to

Keyboard shortcuts

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