mirrorlist

package
v0.1.0-rc0 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrEmptyMirrorlist = errors.New("Empty mirrorlist received: no mirrors available")

Functions

This section is empty.

Types

type Mirrorlist

type Mirrorlist interface {
	URL(SelectMode) string
}

func New

func New(ctx context.Context, mirrorlistURL string) (Mirrorlist, error)

type SelectMode

type SelectMode string
const (
	SelectModeFirstOnly SelectMode = "firstOnly"
	SelectModeRandom    SelectMode = "random"
)

Jump to

Keyboard shortcuts

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