Documentation ¶
Index ¶
- func BuildConfiguration(dynamicConfigBuilders ...func(*types.Configuration)) *types.Configuration
- func MustNewRequest(method, urlStr string, body io.Reader) *http.Request
- func MustParseURL(rawURL string) *url.URL
- func WithBackendNew(name string, opts ...func(*types.Backend)) func(*types.Backend) string
- func WithBackends(opts ...func(*types.Backend) string) func(*types.Configuration)
- func WithBasicAuth(username string, password string) func(*types.Frontend)
- func WithEntryPoints(eps ...string) func(*types.Frontend)
- func WithFrontEndAuth(auth *types.Auth) func(*types.Frontend)
- func WithFrontend(backend string, opts ...func(*types.Frontend)) func(*types.Frontend) string
- func WithFrontendName(name string) func(*types.Frontend)
- func WithFrontends(opts ...func(*types.Frontend) string) func(*types.Configuration)
- func WithLBMethod(method string) func(*types.Backend)
- func WithLBSticky(cookieName string) func(*types.Backend)
- func WithRoute(name string, rule string) func(*types.Route) string
- func WithRoutes(opts ...func(*types.Route) string) func(*types.Frontend)
- func WithServerNew(url string, opts ...func(*types.Server)) func(*types.Server) string
- func WithServersNew(opts ...func(*types.Server) string) func(*types.Backend)
- type CollectingCounter
- type CollectingGauge
- type CollectingHealthCheckMetrics
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildConfiguration ¶
func BuildConfiguration(dynamicConfigBuilders ...func(*types.Configuration)) *types.Configuration
BuildConfiguration is a helper to create a configuration.
func MustNewRequest ¶
MustNewRequest creates a new http get request or panics if it can't
func MustParseURL ¶
MustParseURL parses a URL or panics if it can't
func WithBackendNew ¶
WithBackendNew is a helper to create a configuration
func WithBackends ¶
func WithBackends(opts ...func(*types.Backend) string) func(*types.Configuration)
WithBackends is a helper to create a configuration
func WithBasicAuth ¶
WithBasicAuth is a helper to create a configuration Deprecated
func WithEntryPoints ¶
WithEntryPoints is a helper to create a configuration
func WithFrontEndAuth ¶
WithFrontEndAuth is a helper to create a configuration
func WithFrontend ¶
WithFrontend is a helper to create a configuration
func WithFrontendName ¶
WithFrontendName is a helper to create a configuration
func WithFrontends ¶
func WithFrontends(opts ...func(*types.Frontend) string) func(*types.Configuration)
WithFrontends is a helper to create a configuration
func WithLBMethod ¶
WithLBMethod is a helper to create a configuration
func WithLBSticky ¶
WithLBSticky is a helper to create a configuration
func WithRoutes ¶
WithRoutes is a helper to create a configuration
func WithServerNew ¶
WithServerNew is a helper to create a configuration
Types ¶
type CollectingCounter ¶
CollectingCounter is a metrics.Counter implementation that enables access to the CounterValue and LastLabelValues.
func (*CollectingCounter) Add ¶
func (c *CollectingCounter) Add(delta float64)
Add is there to satisfy the metrics.Counter interface.
type CollectingGauge ¶
CollectingGauge is a metrics.Gauge implementation that enables access to the GaugeValue and LastLabelValues.
func (*CollectingGauge) Add ¶
func (g *CollectingGauge) Add(delta float64)
Add is there to satisfy the metrics.Gauge interface.
func (*CollectingGauge) Set ¶
func (g *CollectingGauge) Set(value float64)
Set is there to satisfy the metrics.Gauge interface.
type CollectingHealthCheckMetrics ¶
type CollectingHealthCheckMetrics struct {
Gauge *CollectingGauge
}
CollectingHealthCheckMetrics can be used for testing the Metrics instrumentation of the HealthCheck package.
func NewCollectingHealthCheckMetrics ¶
func NewCollectingHealthCheckMetrics() *CollectingHealthCheckMetrics
NewCollectingHealthCheckMetrics creates a new CollectingHealthCheckMetrics instance.
func (*CollectingHealthCheckMetrics) BackendServerUpGauge ¶
func (m *CollectingHealthCheckMetrics) BackendServerUpGauge() metrics.Gauge
BackendServerUpGauge is there to satisfy the healthcheck.metricsRegistry interface.