package
0.0.0-20191119230332-fa0a1abb6182
Repository: https://github.com/dfquaresma/sdproj.git
Documentation: pkg.go.dev

# Functions

CalculateReplicas decides what replica count to set depending on current/desired amount.
DecorateWithCORS decorate a handler with CORS-injecting middleware.
HealthzHandler healthz hanlder for mertics server.
MakeAlertHandler handles alerts from Prometheus Alertmanager.
MakeAsyncReport makes a handler for asynchronous invocations to report back into.
MakeCallIDMiddleware middleware tags a request with a uid.
MakeForwardingProxyHandler create a handler which forwards HTTP requests.
MakeInfoHandler is responsible for display component version information.
MakeNotifierWrapper wraps a http.HandlerFunc in an interceptor to pass to HTTPNotifier.
MakeQueuedProxy accepts work onto a queue.
MakeScalingHandler creates handler which can scale a function from zero to N replica(s).

# Structs

CORSHandler set custom CORS instructions for the store.
FunctionAsHostBaseURLResolver resolves URLs using a function from the URL as a host.
FunctionPrefixTrimmingURLPathTransformer removes the "/function/servicename/" prefix from the URL path.
LoggingNotifier notifies a log about a request.
PrometheusFunctionNotifier records metrics to Prometheus.
PrometheusServiceNotifier notifier for core service endpoints.
SingleHostBaseURLResolver resolves URLs against a single BaseURL.
TransparentURLPathTransformer passes the requested URL path through untouched.

# Interfaces

BaseURLResolver URL resolver for upstream requests.
HTTPNotifier notify about HTTP request/response.
URLPathTransformer Transform the incoming URL path for upstream requests.