fetcher

package
v0.0.0-...-1acd2bc Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2020 License: Unlicense Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrSumsMismatch     = errors.New("checksum mismatch")
	ErrUnknownModMethod = errors.New("unknown mod method")
)
View Source
var ErrUnexpectedNode = errors.New("unexpected html node")

Functions

This section is empty.

Types

type Fetcher

type Fetcher struct {
	Files  billy.Filesystem
	Client *http.Client
}

func (*Fetcher) Cache

func (dl *Fetcher) Cache(m modpacker.Mod) error

func (*Fetcher) Open

func (dl *Fetcher) Open(m modpacker.Mod) (billy.File, error)

func (*Fetcher) Sums

func (dl *Fetcher) Sums(m modpacker.Mod) ([]string, error)

Jump to

Keyboard shortcuts

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