mcsrvapi

package module
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2024 License: Unlicense Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ChecksumTypeSha1   = "sha1"
	ChecksumTypeSha256 = "sha256"
	ChecksumTypeMd5    = "md5"
	ChecksumTypeNone   = "none"
)

Variables

View Source
var ErrInvalidChecksumType = errors.New("invalid checksum type")
View Source
var ErrMismatchedChecksum = errors.New("mismatched checksums")

Functions

This section is empty.

Types

type ChecksumType

type ChecksumType = string

type DownloadChecksums

type DownloadChecksums struct {
	Sha1   string
	Sha256 string
	Md5    string
}

func DownloadWithChecksums

func DownloadWithChecksums(url string, path string, checksumType string, checksum string) (*DownloadChecksums, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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