web

package
v0.1.22 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2019 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ErrorToHTTP

func ErrorToHTTP(err error, gone bool) int

ErrorToHTTP converts errors to HTTP Status Code.

func HandleSortOrder

func HandleSortOrder(w http.ResponseWriter, r *http.Request, scope string) (sort string, order string, err error)

HandleSortOrder gets and stores for a Listing the 'sort' and 'order', and reads 'limit' if given. The latter is 0 if not given. Sets cookies.

func Handler

func Handler(m *fb.FileBrowser) http.Handler

Handler returns a function compatible with web.HandleFunc.

Types

This section is empty.

Jump to

Keyboard shortcuts

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