middleware

package
v0.0.0-...-6bbe1e0 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2017 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DumpReconCache

func DumpReconCache(reconCachePath string, source string, cacheData map[string]interface{}) error

func GrepObject

func GrepObject(next http.Handler) http.Handler

GrepObject is an http middleware that searches objects line-by-line on the object server, similar to grep(1).

func ListDevices

func ListDevices(driveRoot string) (map[string][]string, error)

func OptionsHandler

func OptionsHandler(serverType string, writer http.ResponseWriter, request *http.Request)

func ReconHandler

func ReconHandler(driveRoot string, writer http.ResponseWriter, request *http.Request)

func Recover

func Recover(w http.ResponseWriter, r *http.Request, msg string)

func RecoverHandler

func RecoverHandler(next http.Handler) http.Handler

func ValidateRequest

func ValidateRequest(next http.Handler) http.Handler

Types

This section is empty.

Jump to

Keyboard shortcuts

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