core

package
v0.7.8 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MangaDesk

type MangaDesk struct {
	Client *mangodex.DexClient

	TView      *tview.Application
	PageHolder *tview.Pages

	Config  *UserConfig
	LogFile *os.File
}

MangaDesk : The client for this application.

var (
	App        *MangaDesk
	AppVersion = "MangaDesk v0.7.8"
)

App : Global App variable.

func (*MangaDesk) DeleteCredentials

func (m *MangaDesk) DeleteCredentials()

DeleteCredentials : Delete saved credentials from the system.

func (*MangaDesk) Initialise

func (m *MangaDesk) Initialise() error

Initialise : Initialise the app. Return error if unable to restore previous session.

func (*MangaDesk) Shutdown

func (m *MangaDesk) Shutdown()

Shutdown : Stop all services such as logging and let the application shut down gracefully.

func (*MangaDesk) StoreCredentials

func (m *MangaDesk) StoreCredentials() error

StoreCredentials : Store the refresh token.

type UserConfig

type UserConfig struct {
	DownloadDir     string   `json:"downloadDir"`
	Languages       []string `json:"languages"`
	DownloadQuality string   `json:"downloadQuality"`
	ExplicitContent bool     `json:"explicitContent"`
	ForcePort443    bool     `json:"forcePort443"`
	AsZip           bool     `json:"asZip"`
	ZipType         string   `json:"zipType"`
}

UserConfig : This struct contains te user configurable settings.

Jump to

Keyboard shortcuts

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