Documentation ¶
Index ¶
- type MockMetrics
- func (m *MockMetrics) Gauge(key string) (v float64, ok bool)
- func (m *MockMetrics) IncCounter(key string)
- func (m *MockMetrics) IncCounterBy(key string, value int64)
- func (m *MockMetrics) IncErrorsBackend(routeId string)
- func (m *MockMetrics) IncErrorsStreaming(routeId string)
- func (m *MockMetrics) IncFloatCounterBy(key string, value float64)
- func (m *MockMetrics) IncRoutingFailures()
- func (m *MockMetrics) MeasureAllFiltersRequest(routeId string, start time.Time)
- func (m *MockMetrics) MeasureAllFiltersResponse(routeId string, start time.Time)
- func (m *MockMetrics) MeasureBackend(routeId string, start time.Time)
- func (m *MockMetrics) MeasureBackend5xx(t time.Time)
- func (m *MockMetrics) MeasureBackendHost(routeBackendHost string, start time.Time)
- func (m *MockMetrics) MeasureFilterRequest(filterName string, start time.Time)
- func (m *MockMetrics) MeasureFilterResponse(filterName string, start time.Time)
- func (m *MockMetrics) MeasureResponse(code int, method string, routeId string, start time.Time)
- func (m *MockMetrics) MeasureRouteLookup(start time.Time)
- func (m *MockMetrics) MeasureServe(routeId, host, method string, code int, start time.Time)
- func (m *MockMetrics) MeasureSince(key string, start time.Time)
- func (m *MockMetrics) RegisterHandler(path string, handler *http.ServeMux)
- func (m *MockMetrics) UpdateGauge(key string, value float64)
- func (m *MockMetrics) WithCounters(f func(counters map[string]int64))
- func (m *MockMetrics) WithFloatCounters(f func(floatCounters map[string]float64))
- func (m *MockMetrics) WithGauges(f func(map[string]float64))
- func (m *MockMetrics) WithMeasures(f func(measures map[string][]time.Duration))
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockMetrics ¶
func (*MockMetrics) Gauge ¶ added in v0.11.7
func (m *MockMetrics) Gauge(key string) (v float64, ok bool)
func (*MockMetrics) IncCounter ¶
func (m *MockMetrics) IncCounter(key string)
func (*MockMetrics) IncCounterBy ¶
func (m *MockMetrics) IncCounterBy(key string, value int64)
func (*MockMetrics) IncErrorsBackend ¶
func (m *MockMetrics) IncErrorsBackend(routeId string)
func (*MockMetrics) IncErrorsStreaming ¶
func (m *MockMetrics) IncErrorsStreaming(routeId string)
func (*MockMetrics) IncFloatCounterBy ¶ added in v0.10.153
func (m *MockMetrics) IncFloatCounterBy(key string, value float64)
func (*MockMetrics) IncRoutingFailures ¶
func (m *MockMetrics) IncRoutingFailures()
func (*MockMetrics) MeasureAllFiltersRequest ¶
func (m *MockMetrics) MeasureAllFiltersRequest(routeId string, start time.Time)
func (*MockMetrics) MeasureAllFiltersResponse ¶
func (m *MockMetrics) MeasureAllFiltersResponse(routeId string, start time.Time)
func (*MockMetrics) MeasureBackend ¶
func (m *MockMetrics) MeasureBackend(routeId string, start time.Time)
func (*MockMetrics) MeasureBackend5xx ¶
func (m *MockMetrics) MeasureBackend5xx(t time.Time)
func (*MockMetrics) MeasureBackendHost ¶
func (m *MockMetrics) MeasureBackendHost(routeBackendHost string, start time.Time)
func (*MockMetrics) MeasureFilterRequest ¶
func (m *MockMetrics) MeasureFilterRequest(filterName string, start time.Time)
func (*MockMetrics) MeasureFilterResponse ¶
func (m *MockMetrics) MeasureFilterResponse(filterName string, start time.Time)
func (*MockMetrics) MeasureResponse ¶
func (*MockMetrics) MeasureRouteLookup ¶
func (m *MockMetrics) MeasureRouteLookup(start time.Time)
func (*MockMetrics) MeasureServe ¶
func (m *MockMetrics) MeasureServe(routeId, host, method string, code int, start time.Time)
func (*MockMetrics) MeasureSince ¶
func (m *MockMetrics) MeasureSince(key string, start time.Time)
func (*MockMetrics) RegisterHandler ¶
func (m *MockMetrics) RegisterHandler(path string, handler *http.ServeMux)
func (*MockMetrics) UpdateGauge ¶
func (m *MockMetrics) UpdateGauge(key string, value float64)
func (*MockMetrics) WithCounters ¶ added in v0.10.153
func (m *MockMetrics) WithCounters(f func(counters map[string]int64))
func (*MockMetrics) WithFloatCounters ¶ added in v0.10.153
func (m *MockMetrics) WithFloatCounters(f func(floatCounters map[string]float64))
func (*MockMetrics) WithGauges ¶ added in v0.11.7
func (m *MockMetrics) WithGauges(f func(map[string]float64))
func (*MockMetrics) WithMeasures ¶ added in v0.10.153
func (m *MockMetrics) WithMeasures(f func(measures map[string][]time.Duration))
Click to show internal directories.
Click to hide internal directories.