package
0.0.0-20200122233423-62801f1d34cf
Repository: https://github.com/vishvananda/pkg.git
Documentation: pkg.go.dev
# Packages
Package prober contains functionality for implementing probing in knative serving.
# Functions
ErrorHandler sets up a handler suitable for use with the ErrorHandler field on httputil's reverse proxy.
GetClusterDomainName returns cluster's domain name or an error Closes issue: https://github.com/knative/eventing/issues/714.
GetServiceHostname returns the fully qualified service hostname.
NewAutoTransport creates a RoundTripper that can use appropriate transport based on the request's HTTP version.
NewH2CTransport constructs a new H2C transport.
NewProberTransport creates a RoundTripper that is useful for probing, since it will not cache connections.
NewServer returns a new HTTP Server with HTTP2 handler.
# Constants
DefaultConnTimeout specifies a short default connection timeout to avoid hitting the issue fixed in https://github.com/kubernetes/kubernetes/pull/72534 but only avalailable after Kubernetes 1.14.
ProbeHeaderName is the name of a header that can be added to requests to probe the knative networking layer.
UserAgentKey is the constant for header "User-Agent".
# Variables
AutoTransport uses h2c for HTTP2 requests and falls back to `http.DefaultTransport` for all others.
# Type aliases
RoundTripperFunc implementation roundtrips a request.