Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewReverseProxyBinder ¶
func NewReverseProxyBinder(addr, publicBaseAddr string, muxTimeout time.Duration) (httpBinder *HTTPBinder, httpsBinder *HTTPBinder, err error)
Types ¶
type HTTPBinder ¶
type HTTPBinder struct {
// contains filtered or unexported fields
}
func NewHTTPBinder ¶
func NewHTTPBinder(addr, publicBaseAddr string, muxTimeout time.Duration) (*HTTPBinder, error)
func NewHTTPSBinder ¶
func (*HTTPBinder) Bind ¶
func (b *HTTPBinder) Bind(rawOpts interface{}) (net.Listener, string, error)
func (*HTTPBinder) BindOpts ¶
func (b *HTTPBinder) BindOpts(opts *proto.HTTPOptions) (listener net.Listener, url string, err error)
type HTTPReverseProxyConn ¶
type HTTPReverseProxyConn struct {
*vhost.HTTPConn
}
HTTPReverseProxyConn inspects the X-Forwarded-For header and includes either http:// or https:// in the result of Host()
func (*HTTPReverseProxyConn) Host ¶
func (c *HTTPReverseProxyConn) Host() string
type TCPBinder ¶
type TCPBinder struct {
// contains filtered or unexported fields
}
func NewTCPBinder ¶
Create a new TCP binder that binds ports on the given interface. The supplied hostname is only used for "display" purposes to communicate back to the clients the public hostname where the bound port can be accessed.
Click to show internal directories.
Click to hide internal directories.