Documentation ¶
Overview ¶
Package reverseproxy provides a reverse proxy.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Set = wire.NewSet( wire.Struct(new(ReverseProxy), "*"), wire.Bind(new(Interface), new(*ReverseProxy)), )
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option struct { Transport http.RoundTripper BindAddressCandidates []string TargetScheme string TargetHost string TargetPort int }
Option represents an option of a reverse proxy.
type ReverseProxy ¶
type ReverseProxy struct { }
func (*ReverseProxy) Run ¶
func (rp *ReverseProxy) Run(o Option, readyChan chan<- Instance) error
Run executes a reverse proxy server.
It returns nil if the server has been closed. It returns an error otherwise.
It will send the Instance to the readyChan when the reverse proxy is ready. Caller should close the readyChan.
Click to show internal directories.
Click to hide internal directories.