Documentation
¶
Index ¶
- type Handler
- func (h *Handler) BuilderURL(u *url.URL) string
- func (h *Handler) Config() *config.Config
- func (h *Handler) CurrentBackends() []*backend.Backend
- func (h *Handler) JSONStatus(w http.ResponseWriter, _ *http.Request)
- func (h *Handler) MetricsEndpoint(w http.ResponseWriter, _ *http.Request)
- func (h *Handler) MetricsText() string
- func (h *Handler) RoundTrip(req *http.Request) (*http.Response, error)
- func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request)
- func (h *Handler) SetBackends(backends []*backend.Backend)
- func (h *Handler) SetMetrics(m *metrics.Metrics)
- func (h *Handler) SetStrategy(s balancer.Strategy)
- func (h *Handler) Status() []map[string]any
- func (h *Handler) StatusEndpoint(w http.ResponseWriter, r *http.Request)
- func (h *Handler) StopBackground()
- func (h *Handler) StrategyName() string
- func (h *Handler) Transport() *http.Transport
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func NewHandler ¶
func (*Handler) CurrentBackends ¶
func (*Handler) JSONStatus ¶
func (h *Handler) JSONStatus(w http.ResponseWriter, _ *http.Request)
func (*Handler) MetricsEndpoint ¶
func (h *Handler) MetricsEndpoint(w http.ResponseWriter, _ *http.Request)
func (*Handler) MetricsText ¶
func (*Handler) SetBackends ¶
func (*Handler) SetMetrics ¶
func (*Handler) SetStrategy ¶
func (*Handler) StatusEndpoint ¶
func (h *Handler) StatusEndpoint(w http.ResponseWriter, r *http.Request)
func (*Handler) StopBackground ¶
func (h *Handler) StopBackground()
func (*Handler) StrategyName ¶
Click to show internal directories.
Click to hide internal directories.