Documentation ¶
Index ¶
- Constants
- func AddCorrelationIDToContext(next http.Handler) http.Handler
- func AddInfoLocationToContext(next http.Handler) http.Handler
- func AddOriginatingIdentityToContext(next http.Handler) http.Handler
- func AddRequestIdentityToContext(next http.Handler) http.Handler
- type APIVersionMiddleware
- type ContextKey
- type ErrorResponse
Constants ¶
View Source
const ApiVersionInvalidKey = "broker-api-version-invalid"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type APIVersionMiddleware ¶
type APIVersionMiddleware struct {
LoggerFactory lager.Logger
}
func (APIVersionMiddleware) ValidateAPIVersionHdr ¶
func (m APIVersionMiddleware) ValidateAPIVersionHdr(next http.Handler) http.Handler
type ContextKey ¶
type ContextKey string
const ( CorrelationIDKey ContextKey = "correlation-id" InfoLocationKey ContextKey = "infoLocation" OriginatingIdentityKey ContextKey = "originatingIdentity" RequestIdentityKey ContextKey = "requestIdentity" )
type ErrorResponse ¶
type ErrorResponse struct {
Description string
}
Click to show internal directories.
Click to hide internal directories.