backend

package
v0.0.0-...-d851164 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GogFile

type GogFile struct {
	Name      string
	PlainName string
	Platform  string
	URL       string
	File      string
	Version   string
}

GogFile is a struct used to store details about a single download that needs to be processed. This is the data format used over the internal channels.

type Handler

type Handler interface {
	GetPrefix() string
	GetDisplayPrefix() string
	ReadFile(filename string) (string, error)
	WriteFile(filename string, content string) error
	FileExists(filename string) (bool, error)
	TransferFile(reader io.Reader, basepath string, filename string) error
}

Handler is the definition of the interface between the frontend and backend for processing GogFiles.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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