Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewHTTPHandler ¶
func NewHTTPHandler(api *rest.APISurface) http.Handler
NewHTTPHandler creates a new Router and registers API handlers
Types ¶
type Server ¶
type Server struct { // Router is a mux.Router that registers the handlers for the HTTP // operations: // // - OSB API // - metrics API Router *mux.Router }
Server is the server for the OSB REST API and the metrics API. A Server glues the HTTP operations to their implementations.
func New ¶
func New(api *rest.APISurface, reg prom.Gatherer) *Server
New creates a new Router and registers all the necessary endpoints and handlers.
Click to show internal directories.
Click to hide internal directories.