Versions in this module Expand all Collapse all v1 v1.0.3 Nov 8, 2021 v1.0.0 Nov 1, 2021 Changes in this version + const DefaultDebugPattern + const NEGOTIATE + var EndpointHandler = CustomEndpointHandler(NewRequest) + var NewRequest = NewRequestBuilder(NoopParamExtractor) + func DebugHandler(logger log.Logger) http.HandlerFunc + func DefaultEngine() *engine + func DefaultFactory(pf proxy.Factory, logger log.Logger) route.Factory + func HealthHandler(w http.ResponseWriter, r *http.Request) + func NewFactory(cfg Config) route.Factory + func NoopParamExtractor(_ *http.Request) map[string]string + func RegisterRender(name string, r Render) + type Config struct + DebugPattern string + Engine Engine + HandlerFactory HandlerFactory + Logger log.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 server.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