proxy

package
v0.20.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 1, 2019 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTPProxy

type HTTPProxy struct {
	GetDestination       func(ctx context.Context, remoteAddr string) (addr string, err error)
	GetContext           func(req *http.Request) (context.Context, error)
	HandleHTTPValidation func(w http.ResponseWriter, r *http.Request) bool
	// contains filtered or unexported fields
}

func NewHTTPProxy

func NewHTTPProxy(ctx context.Context, listener net.Listener) *HTTPProxy

func (*HTTPProxy) SetTransport

func (p *HTTPProxy) SetTransport(transport http.RoundTripper)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL