handler

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2020 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Download

func Download(hogPath string) http.HandlerFunc

Download return a binary file

func Qr added in v0.3.0

func Qr(hogPath string) http.HandlerFunc

Qr returns a qr code to the file to download

Types

type ContextKey

type ContextKey int

ContextKey unique identifier

const (
	// TokenKey is a key for a token
	TokenKey ContextKey = iota
	// AuthorizationKey is a key for an authorization header
	AuthorizationKey ContextKey = iota
)

Jump to

Keyboard shortcuts

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