Documentation
¶
Index ¶
- Constants
- Variables
- type ConnectionHandoverListener
- type Proxy
- func (proxy *Proxy) LoadClientKeyCerts(ctx context.Context, reason string)
- func (proxy *Proxy) ServeHTTPSProxyRequests(ctx context.Context, addr string) error
- func (proxy *Proxy) ServePAC(ctx context.Context, addr string) error
- func (proxy *Proxy) ServeReverseProxyRequests(ctx context.Context, addr string, stripSuffixes []string, ...) error
- func (proxy *Proxy) SignCertificateForListenAddr(addr string) (*tls.Certificate, error)
- type TLSConnRoundTripper
Constants ¶
View Source
const RELOAD_RETRY_INTERVAL = time.Second * 60
Variables ¶
View Source
var ErrorResponse = http.Response{StatusCode: 502, Status: "Connection Failed", ProtoMajor: 1, ProtoMinor: 1}
View Source
var SuccessResponse = http.Response{StatusCode: 200, Status: "Connection Established", ProtoMajor: 1, ProtoMinor: 1}
View Source
var UnsupportedResponse = http.Response{StatusCode: 405, Status: "Must CONNECT", ProtoMajor: 1, ProtoMinor: 1}
Functions ¶
This section is empty.
Types ¶
type ConnectionHandoverListener ¶ added in v1.2.0
type ConnectionHandoverListener struct {
// contains filtered or unexported fields
}
func (ConnectionHandoverListener) Accept ¶ added in v1.2.0
func (l ConnectionHandoverListener) Accept() (net.Conn, error)
func (ConnectionHandoverListener) Addr ¶ added in v1.2.0
func (l ConnectionHandoverListener) Addr() net.Addr
func (ConnectionHandoverListener) Close ¶ added in v1.2.0
func (l ConnectionHandoverListener) Close() error
type Proxy ¶
type Proxy struct {
// contains filtered or unexported fields
}
func (*Proxy) LoadClientKeyCerts ¶ added in v1.2.0
func (*Proxy) ServeHTTPSProxyRequests ¶ added in v1.2.0
func (*Proxy) ServeReverseProxyRequests ¶ added in v1.2.0
func (*Proxy) SignCertificateForListenAddr ¶ added in v1.2.0
func (proxy *Proxy) SignCertificateForListenAddr(addr string) (*tls.Certificate, error)
type TLSConnRoundTripper ¶ added in v1.2.0
type TLSConnRoundTripper struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.