Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotFound = errors.New("not found")
ErrNotFound is returned when a requested tunnel group cannot be located
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) ServeHTTP ¶
func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request)
ServeHTTP proxies requests onto tunnel endpoints based on the presence of and targets defined in the requests X-Forwarded-Host or Host headers. These headers are used to identify the target tunnel group and then the request is forwarded onto the next available connection in a round-robbin sequence.
Click to show internal directories.
Click to hide internal directories.