package
0.0.0-20170630162649-40a2567d3dca
Repository: https://github.com/wcl48/runtime.git
Documentation: pkg.go.dev

# Packages

Package denco provides fast URL router.
Package header provides functions for parsing HTTP headers.
No description provided by the author

# Functions

DefaultRouter creates a default implemenation of the router.
NegotiateContentEncoding returns the best offered content encoding for the request's Accept-Encoding header.
NegotiateContentType returns the best offered content type for the request's Accept header.
NewContext creates a new context wrapper.
NewOperationExecutor creates a context aware middleware that handles the operations after routing.
NewRoutableContext creates a new context for a routable API.
NewRouter creates a new context aware router middleware.
NotImplemented the error response when the response is not implemented.
PassthroughBuilder returns the handler, aka the builder identity function.
Redoc creates a middleware to serve a documentation site for a swagger spec.
Serve serves the specified spec with the specified api registrations as a http.Handler.
ServeWithBuilder serves the specified spec with the specified api registrations as a http.Handler that is decorated by the Builder.
Spec creates a middleware to serve a swagger spec.

# Variables

Debug when true turns on verbose logging.

# Structs

Context is a type safe wrapper around an untyped request context used throughout to store request context with the gorilla context module.
MatchedRoute represents the route that was matched in this request.
RedocOpts configures the Redoc middlewares.
RouteParam is a object to capture route params in a framework agnostic way.

# Interfaces

RequestBinder is an interface for types to implement when they want to be able to bind from a request.
Responder is an interface for types to implement when they want to be considered for writing HTTP responses.
RoutableAPI represents an interface for things that can serve as a provider of implementations for the swagger router.
Router represents a swagger aware router.

# Type aliases

A Builder can create middlewares.
ResponderFunc wraps a func as a Responder interface.
RouteParams the collection of route params.