Documentation ¶
Index ¶
- Variables
- func New(tripper http.RoundTripper) *httputil.ReverseProxy
- func NewCaptureProxy(topic spec.SnapshotMessageTopic) http.Handler
- func NewClient(proxyURL *url.URL, config *tls.Config) *http.Client
- func NewReplayClient(transport *ReplayTransport) *http.Client
- func NewReplayProxy(topic spec.SnapshotMessageTopic, replay *ReplayTransport) http.Handler
- func NewTransport(proxyURL *url.URL, config *tls.Config) *http.Transport
- type ReplayTransport
- type TunnelMiddleware
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func New ¶
func New(tripper http.RoundTripper) *httputil.ReverseProxy
func NewCaptureProxy ¶
func NewCaptureProxy(topic spec.SnapshotMessageTopic) http.Handler
func NewReplayClient ¶
func NewReplayClient(transport *ReplayTransport) *http.Client
func NewReplayProxy ¶
func NewReplayProxy(topic spec.SnapshotMessageTopic, replay *ReplayTransport) http.Handler
Types ¶
type ReplayTransport ¶
type ReplayTransport struct { Router spec.SnapshotRouter Store spec.SnapshotStore }
func NewReplayTransport ¶
func NewReplayTransport(router spec.SnapshotRouter, store spec.SnapshotStore) *ReplayTransport
type TunnelMiddleware ¶
type TunnelMiddleware struct {
// contains filtered or unexported fields
}
func NewTunnelMiddleware ¶
func NewTunnelMiddleware(mitmAddress string) *TunnelMiddleware
NewTunnelMiddleware creates a new tunnel middleware that will forward CONNECT requests to the MITM address. This is intended for use with testing and debugging.
Click to show internal directories.
Click to hide internal directories.