Documentation ¶ Index ¶ func NewForwardWithConfig(conf *Config) (http.Handler, error) type Config type Forward func NewForward(url string, dialer stream.Dialer) (*Forward, error) func (h *Forward) ServeHTTP(rw http.ResponseWriter, r *http.Request) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func NewForwardWithConfig ¶ func NewForwardWithConfig(conf *Config) (http.Handler, error) NewForwardWithConfig create a new forward with config. Types ¶ type Config ¶ type Config struct { Dialer stream.Dialer `json:",omitempty"` URL string } type Forward ¶ type Forward struct { // contains filtered or unexported fields } func NewForward ¶ func NewForward(url string, dialer stream.Dialer) (*Forward, error) func (*Forward) ServeHTTP ¶ func (h *Forward) ServeHTTP(rw http.ResponseWriter, r *http.Request) Source Files ¶ View all Source files forward.go init.go Click to show internal directories. Click to hide internal directories.