remotehttp

package
v3.0.5 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckCores

func CheckCores(conf emulator.Emulator, log *logger.Logger) error

Types

type Client

type Client interface {
	Request(dest string, urls ...Download) ([]string, []string)
}

type Download

type Download struct {
	Key     string
	Address string
}

type Downloader

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

func NewDefaultDownloader

func NewDefaultDownloader(log *logger.Logger) Downloader

func (*Downloader) Download

func (d *Downloader) Download(dest string, urls ...Download) ([]string, []string)

Download tries to download specified with URLs list of files and put them into the destination folder. It will return a partial or full list of downloaded files, a list of processed files if some pipe processing functions are set.

type GrabDownloader

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

func NewGrabDownloader

func NewGrabDownloader(log *logger.Logger) GrabDownloader

func (GrabDownloader) Request

func (d GrabDownloader) Request(dest string, urls ...Download) (ok []string, nook []string)

type Manager

type Manager struct {
	manager.BasicManager
	// contains filtered or unexported fields
}

func NewRemoteHttpManager

func NewRemoteHttpManager(conf emulator.LibretroConfig, log *logger.Logger) Manager

func (*Manager) Sync

func (m *Manager) Sync() error

type Process

type Process func(string, []string, *logger.Logger) []string

Jump to

Keyboard shortcuts

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