dl

package
v0.0.25 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2016 License: MIT, BSD-3-Clause Imports: 19 Imported by: 0

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

func RegisterHandlers

func RegisterHandlers(mux *http.ServeMux)

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", "Mac OS X", "Linux"
	Requirements string // "Windows XP and above, 64-bit Intel Processor"
	// contains filtered or unexported fields
}

type File

type File struct {
	Filename string
	OS       string
	Arch     string
	Version  string
	Checksum string `datastore:",noindex"`
	Size     int64  `datastore:",noindex"`
	Kind     string // "archive", "installer", "source"
	Uploaded time.Time
}

func (File) Highlight

func (f File) Highlight() bool

func (File) PrettyOS

func (f File) PrettyOS() string

func (File) PrettySize

func (f File) PrettySize() string

func (File) URL

func (f File) URL() string

type Release

type Release struct {
	Version string
	Stable  bool
	Files   []File
	Visible bool // show files on page load
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳