Documentation ¶
Overview ¶
Package api exposes an http.Handler which registers all routes necessary to act as an OSB-compatible router. It's the main entrypoint to the public API of crossplace-service-broker.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoggerMiddleware ¶
func LoggerMiddleware(logger lager.Logger) mux.MiddlewareFunc
LoggerMiddleware logs a debug log with headers.
Types ¶
type API ¶
type API struct {
// contains filtered or unexported fields
}
API is a http.Handler
func New ¶
func New(sb domain.ServiceBroker, brokerCredentials []auth.Credential, jwtSigningKeys *jwt.KeyRegister, logger lager.Logger) *API
New creates a new API
Click to show internal directories.
Click to hide internal directories.