handlers

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2021 License: MIT Imports: 16 Imported by: 1

Documentation

Index

Constants

View Source
const (
	OSWindows = OS("WINDOWS")
	OSDarwin  = OS("DARWIN")
	OSLinux   = OS("LINUX")
	OSEmpty   = OS("")
)

OS enumerated values

Variables

This section is empty.

Functions

func Download

func Download(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

Download handles resolving the latest GitHub release for the given request and either redirecting the download request to that URL or unpacking the binary and writing it into the response if specified

func Home

Home is the index handler that simply returns the homeMessage HTML above

Types

type DownloadOptions

type DownloadOptions struct {
	OS         OS
	Uncompress bool
}

DownloadOptions represents various options that can be supplied to the download endpoint

type OS

type OS string

OS is an enum representing an operating system variant

Jump to

Keyboard shortcuts

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