package
0.0.0-20241126003411-bba95ff4d6d5
Repository: https://github.com/google/inverting-proxy.git
Documentation: pkg.go.dev

# Functions

ExponentialBackoffDuration gets time to wait before retry for exponential backoff.
ListPendingRequests issues a single request to the proxy to ask for the IDs of pending requests.
NewResponseForwarder constructs a new ResponseWriteCloser that forwards to the given proxy for the specified request.
NewStreamingResponseWriter returns a ResponseWriteCloser that forwards the written response to the given channel.
ReadRequest reads a forwarded client request from the inverting proxy.
RoundTripperWithVMIdentity returns an http.RoundTripper that includes a GCE VM ID token in every outbound request.
No description provided by the author

# Constants

HeaderBackendID is the name of a request header used to uniquely identify this agent.
HeaderRequestID is the name of a request/response header used to uniquely identify a proxied request.
HeaderRequestStartTime is the name of a response header used by the proxy to report the start time of a proxied request.
HeaderUserID is the name of a response header used by the proxy to identify the end user.
HeaderVMID is the name of a request header used to report the VM (if any) on which the agent is running.
JitterPercent sets the jitter for exponential backoff retry time.
PendingPath is the URL subpath for pending requests held by the proxy.
RequestPath is the URL subpath for reading a specific request held by the proxy.
ResponsePath is the URL subpath for posting a request response to the proxy.

# Structs

ForwardedRequest represents an end-client HTTP request that was forwarded to us by the inverting proxy.

# Interfaces

ResponseWriteCloser combines the http.ResponseWriter and io.Closer interfaces.
StreamingResponseWriter is a ResponseWriteCloser with an additional method to notify writers that the streamed response is no longer being consumed due to an error.

# Type aliases

PendingRequests represents a list of request IDs that do not yet have a response.
RequestCallback defines how the caller of `ReadRequest` uses the request that was read.