Versions in this module Expand all Collapse all v0 v0.9.0 Apr 4, 2019 Changes in this version + const DefaultDebugPattern + const NEGOTIATE + var EndpointHandler = CustomEndpointHandler(NewRequest) + var NewRequest = NewRequestBuilder(func(_ *http.Request) map[string]string { ... }) + func DebugHandler(logger logging.Logger) http.HandlerFunc + func DefaultEngine() *engine + func DefaultFactory(pf proxy.Factory, logger logging.Logger) router.Factory + func NewFactory(cfg Config) router.Factory + func RegisterRender(name string, r Render) + type Config struct + DebugPattern string + Engine Engine + HandlerFactory HandlerFactory + Logger logging.Logger + Middlewares []HandlerMiddleware + ProxyFactory proxy.Factory + RunServer RunServerFunc + type Engine interface + Handle func(pattern, method string, handler http.Handler) + type HTTPErrorInterceptor struct + func NewHTTPErrorInterceptor(w http.ResponseWriter) *HTTPErrorInterceptor + func (i *HTTPErrorInterceptor) WriteHeader(code int) + type HandlerFactory func(*config.EndpointConfig, proxy.Proxy) http.HandlerFunc + func CustomEndpointHandler(rb RequestBuilder) HandlerFactory + func CustomEndpointHandlerWithHTTPError(rb RequestBuilder, errF router.ToHTTPError) HandlerFactory + type HandlerMiddleware interface + Handler func(h http.Handler) http.Handler + type ParamExtractor func(r *http.Request) map[string]string + type Render func(http.ResponseWriter, *proxy.Response) + type RequestBuilder func(r *http.Request, queryString, headersToSend []string) *proxy.Request + func NewRequestBuilder(paramExtractor ParamExtractor) RequestBuilder + type RunServerFunc func(context.Context, config.ServiceConfig, http.Handler) error