middleware

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2018 License: Apache-2.0 Imports: 32 Imported by: 4

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 Metrics added in v0.0.2

func Metrics(metricsScope tally.Scope) func(http.Handler) http.Handler

func NewDebugResponses added in v0.0.2

func NewDebugResponses(debugHeader bool) func(http.Handler) http.Handler

func OptionsHandler

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

func ReconHandler

func ReconHandler(driveRoot string, reconCachePath string, mountCheck bool, 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 RingHandler added in v1.3.0

func RingHandler(w http.ResponseWriter, req *http.Request)

func ServerTracer added in v1.4.0

func ServerTracer(tracer opentracing.Tracer,
) func(http.Handler) http.Handler

ServerTracer is a Middleware that tries to join with an OpenTracing trace found in the HTTP request headers and starts a new Span. If no trace could be found in the HTTP request headers, the Span will be a trace root.

func ValidateRequest

func ValidateRequest(next http.Handler) http.Handler

Types

type QuarantineDetailEntry added in v1.2.0

type QuarantineDetailEntry struct {
	NameOnDevice string
	NameInURL    string
}

Jump to

Keyboard shortcuts

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