distrib

package
v0.6.5 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2020 License: AGPL-3.0 Imports: 34 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MimeOctet = Mime("application/octet-stream")
	MimeGif   = Mime("image/gif")
	MimeJPG   = Mime("image/jpeg")
	MimePNG   = Mime("image/png")
	MimeCSV   = Mime("text/csv")
)

Variables

View Source
var (
	ErrNotModified    = errors.New("not modified")
	ErrNotFound       = errors.New("not found")
	ErrNotImplemented = errors.New("not implemented")
)

Functions

func Browse

func Browse(d string) (http.Handler, error)

func Download

func Download(d string) (http.Handler, error)

func Fetch

func Fetch(r, d string) (http.Handler, error)

func Limit

func Limit(h http.Handler, n int, addrs ...string) http.Handler

func Monitor

func Monitor(gs []string) (http.Handler, error)

Types

type Mime

type Mime string

func (Mime) MainType

func (m Mime) MainType() string

func (Mime) String

func (m Mime) String() string

func (Mime) SubType

func (m Mime) SubType() string

Jump to

Keyboard shortcuts

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