Documentation ¶
Index ¶
- Constants
- func Body(h http.Handler) http.Handler
- func Headers(h http.Handler) http.Handler
- func Lowercase(h http.Handler) http.Handler
- func MockMSIMiddleware(h http.Handler) http.Handler
- func Panic(h http.Handler) http.Handler
- func SystemData(h http.Handler) http.Handler
- type ApiVersionValidator
- type AuthMiddleware
- type LogMiddleware
- type MaintenanceMiddleware
- type MetricsMiddleware
- type ValidateMiddleware
Constants ¶
View Source
const ( ContextKeyLog contextKey = iota ContextKeyOriginalPath ContextKeyBody ContextKeySystemData )
View Source
const (
MockIdentityURL = "" /* 283-byte string literal not displayed */
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ApiVersionValidator ¶
func (ApiVersionValidator) ValidateAPIVersion ¶
func (a ApiVersionValidator) ValidateAPIVersion(h http.Handler) http.Handler
func (ApiVersionValidator) ValidatePreflightAPIVersion ¶
func (a ApiVersionValidator) ValidatePreflightAPIVersion(h http.Handler) http.Handler
type AuthMiddleware ¶
type AuthMiddleware struct { AdminAuth clientauthorizer.ClientAuthorizer ArmAuth clientauthorizer.ClientAuthorizer }
func (AuthMiddleware) Authenticate ¶
func (a AuthMiddleware) Authenticate(h http.Handler) http.Handler
type LogMiddleware ¶
type MaintenanceMiddleware ¶
func (MaintenanceMiddleware) UnplannedMaintenanceSignal ¶
func (mm MaintenanceMiddleware) UnplannedMaintenanceSignal(h http.Handler) http.Handler
Emit metric for unplanned maintenance
type MetricsMiddleware ¶
Click to show internal directories.
Click to hide internal directories.