Documentation
¶
Overview ¶
Package source chooses where magpie reads from, with a mirror as a fallback when the official address can't be reached. The official source stays first; a mirror is only asked when it fails.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Do ¶
Do sends req as usual and, when the official answer fails in a way a mirror could answer, tries its mirrors in order. A request that carries credentials is never sent to a mirror.
func DoOfficial ¶
DoOfficial sends req to its official address alone. It is for a file whose checksum must come from the same trusted place as the file itself.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.