Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ProxyHandler ¶
type ProxyHandler struct {
// contains filtered or unexported fields
}
func NewProxyHandler ¶
func NewProxyHandler(logger zerolog.Logger) *ProxyHandler
func (*ProxyHandler) AddRoute ¶
func (h *ProxyHandler) AddRoute(host string, proxy *httputil.ReverseProxy)
func (*ProxyHandler) GetRoutes ¶
func (h *ProxyHandler) GetRoutes() []string
func (*ProxyHandler) RemoveRoute ¶
func (h *ProxyHandler) RemoveRoute(host string)
func (*ProxyHandler) ServeHTTP ¶
func (h *ProxyHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.