httphandler

package
v0.0.0-...-a1c22f6 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CustomHTTPHandler

type CustomHTTPHandler struct {
	// contains filtered or unexported fields
}

CustomHTTPHandler implement http.Handler We need this custom handler to workaround a issue from ARM, where ARM send linked notification to us with // in url path. http library in golang redirect this kind of request to normalized path.

func NewCustomHTTPHandler

func NewCustomHTTPHandler(handler http.Handler) *CustomHTTPHandler

NewCustomHTTPHandler create new CustomHTTPHandler a concrete http.Handler need here to process request, after the workaround.

func (*CustomHTTPHandler) ServeHTTP

func (c *CustomHTTPHandler) ServeHTTP(httpwriter http.ResponseWriter, httpRequest *http.Request)

ServeHTTP implement http.Handler workaround the ARM issue, then process request.

type MetricEmitter

type MetricEmitter interface {
	ExpectedResult()
	UnexpectedResult()
	Heartbeat()
}

Jump to

Keyboard shortcuts

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