api

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2023 License: BSD-3-Clause Imports: 10 Imported by: 2

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

func (*API) ServeHTTP

func (a *API) ServeHTTP(w http.ResponseWriter, req *http.Request)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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