Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct { *httputil.ReverseProxy // contains filtered or unexported fields }
func New ¶
func New(serverURL *url.URL, handler http.HandlerFunc, serverPool services.RobinService) *Service
New returns a new Proxy service
func (*Service) AddErrorHandler ¶
func (p *Service) AddErrorHandler()
AddErroHandler adds an error handler to the revers proxy
func (*Service) ServeHTTPRequest ¶
func (p *Service) ServeHTTPRequest(w http.ResponseWriter, r *http.Request)
ServeHTTPRequest is the reverse proxy handler
Click to show internal directories.
Click to hide internal directories.