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 ¶ added in v1.6.3
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 ¶ added in v1.4.0
MustParseURL parses a URL or panics if it can't
func WithBackendNew ¶ added in v1.6.3
WithBackendNew is a helper to create a configuration
func WithBackends ¶ added in v1.6.3
func WithBackends(opts ...func(*types.Backend) string) func(*types.Configuration)
WithBackends is a helper to create a configuration
func WithBasicAuth ¶ added in v1.7.0
WithBasicAuth is a helper to create a configuration Deprecated
func WithEntryPoints ¶ added in v1.6.3
WithEntryPoints is a helper to create a configuration
func WithFrontEndAuth ¶ added in v1.7.0
WithFrontEndAuth is a helper to create a configuration
func WithFrontend ¶ added in v1.6.3
WithFrontend is a helper to create a configuration
func WithFrontendName ¶ added in v1.7.0
WithFrontendName is a helper to create a configuration
func WithFrontends ¶ added in v1.6.3
func WithFrontends(opts ...func(*types.Frontend) string) func(*types.Configuration)
WithFrontends is a helper to create a configuration
func WithLBMethod ¶ added in v1.6.3
WithLBMethod is a helper to create a configuration
func WithLBSticky ¶ added in v1.6.3
WithLBSticky is a helper to create a configuration
func WithRoutes ¶ added in v1.6.3
WithRoutes is a helper to create a configuration
func WithServerNew ¶ added in v1.6.3
WithServerNew is a helper to create a configuration
Types ¶
type CollectingCounter ¶ added in v1.6.0
CollectingCounter is a metrics.Counter implementation that enables access to the CounterValue and LastLabelValues.
func (*CollectingCounter) Add ¶ added in v1.6.0
func (c *CollectingCounter) Add(delta float64)
Add is there to satisfy the metrics.Counter interface.
type CollectingGauge ¶ added in v1.6.0
CollectingGauge is a metrics.Gauge implementation that enables access to the GaugeValue and LastLabelValues.
func (*CollectingGauge) Add ¶ added in v1.6.0
func (g *CollectingGauge) Add(delta float64)
Add is there to satisfy the metrics.Gauge interface.
func (*CollectingGauge) Set ¶ added in v1.6.0
func (g *CollectingGauge) Set(value float64)
Set is there to satisfy the metrics.Gauge interface.
type CollectingHealthCheckMetrics ¶ added in v1.6.0
type CollectingHealthCheckMetrics struct {
Gauge *CollectingGauge
}
CollectingHealthCheckMetrics can be used for testing the Metrics instrumentation of the HealthCheck package.
func NewCollectingHealthCheckMetrics ¶ added in v1.6.0
func NewCollectingHealthCheckMetrics() *CollectingHealthCheckMetrics
NewCollectingHealthCheckMetrics creates a new CollectingHealthCheckMetrics instance.
func (*CollectingHealthCheckMetrics) BackendServerUpGauge ¶ added in v1.6.0
func (m *CollectingHealthCheckMetrics) BackendServerUpGauge() metrics.Gauge
BackendServerUpGauge is there to satisfy the healthcheck.metricsRegistry interface.