Documentation
¶
Overview ¶
Package dl implements a simple downloads frontend server.
It accepts HTTP POST requests to create a new download metadata entity, and lists entities with sorting and filtering. It is designed to run only on the instance of godoc that serves golang.org.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Feature ¶
type Feature struct {
// The File field will be filled in by the first stable File
// whose name matches the given fileRE.
File
Platform string // "Microsoft Windows", "Apple macOS", "Linux"
Requirements string // "Windows XP and above, 64-bit Intel Processor"
// contains filtered or unexported fields
}
type File ¶
type File struct {
Filename string `json:"filename"`
OS string `json:"os"`
Arch string `json:"arch"`
Version string `json:"version"`
Checksum string `json:"-" datastore:",noindex"` // SHA1; deprecated
ChecksumSHA256 string `json:"sha256" datastore:",noindex"`
Size int64 `json:"size" datastore:",noindex"`
Kind string `json:"kind"` // "archive", "installer", "source"
Uploaded time.Time `json:"-"`
}
File represents a file on the golang.org downloads page. It should be kept in sync with the upload code in x/build/cmd/release.
func (File) ChecksumType ¶
func (File) PrettyChecksum ¶
func (File) PrettySize ¶
func (File) PrimaryPort ¶
Click to show internal directories.
Click to hide internal directories.