Versions in this module Expand all Collapse all v1 v1.4.10 Dec 9, 2020 Changes in this version + type HealthChecker struct + RegisterCheckerStub func(string, healthz.HealthChecker) error + func (fake *HealthChecker) Invocations() map[string][][]interface{} + func (fake *HealthChecker) RegisterChecker(arg1 string, arg2 healthz.HealthChecker) error + func (fake *HealthChecker) RegisterCheckerArgsForCall(i int) (string, healthz.HealthChecker) + func (fake *HealthChecker) RegisterCheckerCallCount() int + func (fake *HealthChecker) RegisterCheckerCalls(stub func(string, healthz.HealthChecker) error) + func (fake *HealthChecker) RegisterCheckerReturns(result1 error) + func (fake *HealthChecker) RegisterCheckerReturnsOnCall(i int, result1 error) + type MetricsGauge struct + AddStub func(delta float64) + SetStub func(value float64) + WithStub func(labelValues ...string) metrics.Gauge + func (fake *MetricsGauge) Add(delta float64) + func (fake *MetricsGauge) AddArgsForCall(i int) float64 + func (fake *MetricsGauge) AddCallCount() int + func (fake *MetricsGauge) Invocations() map[string][][]interface{} + func (fake *MetricsGauge) Set(value float64) + func (fake *MetricsGauge) SetArgsForCall(i int) float64 + func (fake *MetricsGauge) SetCallCount() int + func (fake *MetricsGauge) With(labelValues ...string) metrics.Gauge + func (fake *MetricsGauge) WithArgsForCall(i int) []string + func (fake *MetricsGauge) WithCallCount() int + func (fake *MetricsGauge) WithReturns(result1 metrics.Gauge) + func (fake *MetricsGauge) WithReturnsOnCall(i int, result1 metrics.Gauge) + type MetricsHistogram struct + ClearStub func() + CountStub func() int64 + MaxStub func() int64 + MeanStub func() float64 + MinStub func() int64 + PercentileStub func(float64) float64 + PercentilesStub func([]float64) []float64 + SampleStub func() go_metrics.Sample + SnapshotStub func() go_metrics.Histogram + StdDevStub func() float64 + SumStub func() int64 + UpdateStub func(int64) + VarianceStub func() float64 + func (fake *MetricsHistogram) Clear() + func (fake *MetricsHistogram) ClearCallCount() int + func (fake *MetricsHistogram) Count() int64 + func (fake *MetricsHistogram) CountCallCount() int + func (fake *MetricsHistogram) CountReturns(result1 int64) + func (fake *MetricsHistogram) CountReturnsOnCall(i int, result1 int64) + func (fake *MetricsHistogram) Invocations() map[string][][]interface{} + func (fake *MetricsHistogram) Max() int64 + func (fake *MetricsHistogram) MaxCallCount() int + func (fake *MetricsHistogram) MaxReturns(result1 int64) + func (fake *MetricsHistogram) MaxReturnsOnCall(i int, result1 int64) + func (fake *MetricsHistogram) Mean() float64 + func (fake *MetricsHistogram) MeanCallCount() int + func (fake *MetricsHistogram) MeanReturns(result1 float64) + func (fake *MetricsHistogram) MeanReturnsOnCall(i int, result1 float64) + func (fake *MetricsHistogram) Min() int64 + func (fake *MetricsHistogram) MinCallCount() int + func (fake *MetricsHistogram) MinReturns(result1 int64) + func (fake *MetricsHistogram) MinReturnsOnCall(i int, result1 int64) + func (fake *MetricsHistogram) Percentile(arg1 float64) float64 + func (fake *MetricsHistogram) PercentileArgsForCall(i int) float64 + func (fake *MetricsHistogram) PercentileCallCount() int + func (fake *MetricsHistogram) PercentileReturns(result1 float64) + func (fake *MetricsHistogram) PercentileReturnsOnCall(i int, result1 float64) + func (fake *MetricsHistogram) Percentiles(arg1 []float64) []float64 + func (fake *MetricsHistogram) PercentilesArgsForCall(i int) []float64 + func (fake *MetricsHistogram) PercentilesCallCount() int + func (fake *MetricsHistogram) PercentilesReturns(result1 []float64) + func (fake *MetricsHistogram) PercentilesReturnsOnCall(i int, result1 []float64) + func (fake *MetricsHistogram) Sample() go_metrics.Sample + func (fake *MetricsHistogram) SampleCallCount() int + func (fake *MetricsHistogram) SampleReturns(result1 go_metrics.Sample) + func (fake *MetricsHistogram) SampleReturnsOnCall(i int, result1 go_metrics.Sample) + func (fake *MetricsHistogram) Snapshot() go_metrics.Histogram + func (fake *MetricsHistogram) SnapshotCallCount() int + func (fake *MetricsHistogram) SnapshotReturns(result1 go_metrics.Histogram) + func (fake *MetricsHistogram) SnapshotReturnsOnCall(i int, result1 go_metrics.Histogram) + func (fake *MetricsHistogram) StdDev() float64 + func (fake *MetricsHistogram) StdDevCallCount() int + func (fake *MetricsHistogram) StdDevReturns(result1 float64) + func (fake *MetricsHistogram) StdDevReturnsOnCall(i int, result1 float64) + func (fake *MetricsHistogram) Sum() int64 + func (fake *MetricsHistogram) SumCallCount() int + func (fake *MetricsHistogram) SumReturns(result1 int64) + func (fake *MetricsHistogram) SumReturnsOnCall(i int, result1 int64) + func (fake *MetricsHistogram) Update(arg1 int64) + func (fake *MetricsHistogram) UpdateArgsForCall(i int) int64 + func (fake *MetricsHistogram) UpdateCallCount() int + func (fake *MetricsHistogram) Variance() float64 + func (fake *MetricsHistogram) VarianceCallCount() int + func (fake *MetricsHistogram) VarianceReturns(result1 float64) + func (fake *MetricsHistogram) VarianceReturnsOnCall(i int, result1 float64) + type MetricsMeter struct + CountStub func() int64 + MarkStub func(int64) + Rate15Stub func() float64 + Rate1Stub func() float64 + Rate5Stub func() float64 + RateMeanStub func() float64 + SnapshotStub func() go_metrics.Meter + StopStub func() + func (fake *MetricsMeter) Count() int64 + func (fake *MetricsMeter) CountCallCount() int + func (fake *MetricsMeter) CountReturns(result1 int64) + func (fake *MetricsMeter) CountReturnsOnCall(i int, result1 int64) + func (fake *MetricsMeter) Invocations() map[string][][]interface{} + func (fake *MetricsMeter) Mark(arg1 int64) + func (fake *MetricsMeter) MarkArgsForCall(i int) int64 + func (fake *MetricsMeter) MarkCallCount() int + func (fake *MetricsMeter) Rate1() float64 + func (fake *MetricsMeter) Rate15() float64 + func (fake *MetricsMeter) Rate15CallCount() int + func (fake *MetricsMeter) Rate15Returns(result1 float64) + func (fake *MetricsMeter) Rate15ReturnsOnCall(i int, result1 float64) + func (fake *MetricsMeter) Rate1CallCount() int + func (fake *MetricsMeter) Rate1Returns(result1 float64) + func (fake *MetricsMeter) Rate1ReturnsOnCall(i int, result1 float64) + func (fake *MetricsMeter) Rate5() float64 + func (fake *MetricsMeter) Rate5CallCount() int + func (fake *MetricsMeter) Rate5Returns(result1 float64) + func (fake *MetricsMeter) Rate5ReturnsOnCall(i int, result1 float64) + func (fake *MetricsMeter) RateMean() float64 + func (fake *MetricsMeter) RateMeanCallCount() int + func (fake *MetricsMeter) RateMeanReturns(result1 float64) + func (fake *MetricsMeter) RateMeanReturnsOnCall(i int, result1 float64) + func (fake *MetricsMeter) Snapshot() go_metrics.Meter + func (fake *MetricsMeter) SnapshotCallCount() int + func (fake *MetricsMeter) SnapshotReturns(result1 go_metrics.Meter) + func (fake *MetricsMeter) SnapshotReturnsOnCall(i int, result1 go_metrics.Meter) + func (fake *MetricsMeter) Stop() + func (fake *MetricsMeter) StopCallCount() int + type MetricsProvider struct + NewCounterStub func(metrics.CounterOpts) metrics.Counter + NewGaugeStub func(metrics.GaugeOpts) metrics.Gauge + NewHistogramStub func(metrics.HistogramOpts) metrics.Histogram + func (fake *MetricsProvider) Invocations() map[string][][]interface{} + func (fake *MetricsProvider) NewCounter(arg1 metrics.CounterOpts) metrics.Counter + func (fake *MetricsProvider) NewCounterArgsForCall(i int) metrics.CounterOpts + func (fake *MetricsProvider) NewCounterCallCount() int + func (fake *MetricsProvider) NewCounterReturns(result1 metrics.Counter) + func (fake *MetricsProvider) NewCounterReturnsOnCall(i int, result1 metrics.Counter) + func (fake *MetricsProvider) NewGauge(arg1 metrics.GaugeOpts) metrics.Gauge + func (fake *MetricsProvider) NewGaugeArgsForCall(i int) metrics.GaugeOpts + func (fake *MetricsProvider) NewGaugeCallCount() int + func (fake *MetricsProvider) NewGaugeReturns(result1 metrics.Gauge) + func (fake *MetricsProvider) NewGaugeReturnsOnCall(i int, result1 metrics.Gauge) + func (fake *MetricsProvider) NewHistogram(arg1 metrics.HistogramOpts) metrics.Histogram + func (fake *MetricsProvider) NewHistogramArgsForCall(i int) metrics.HistogramOpts + func (fake *MetricsProvider) NewHistogramCallCount() int + func (fake *MetricsProvider) NewHistogramReturns(result1 metrics.Histogram) + func (fake *MetricsProvider) NewHistogramReturnsOnCall(i int, result1 metrics.Histogram) + type MetricsRegistry struct + EachStub func(func(string, interface{})) + GetAllStub func() map[string]map[string]interface{} + GetOrRegisterStub func(string, interface{}) interface{} + GetStub func(string) interface{} + RegisterStub func(string, interface{}) error + RunHealthchecksStub func() + UnregisterAllStub func() + UnregisterStub func(string) + func (fake *MetricsRegistry) Each(arg1 func(string, interface{})) + func (fake *MetricsRegistry) EachArgsForCall(i int) func(string, interface{}) + func (fake *MetricsRegistry) EachCallCount() int + func (fake *MetricsRegistry) Get(arg1 string) interface{} + func (fake *MetricsRegistry) GetAll() map[string]map[string]interface{} + func (fake *MetricsRegistry) GetAllCallCount() int + func (fake *MetricsRegistry) GetAllReturns(result1 map[string]map[string]interface{}) + func (fake *MetricsRegistry) GetAllReturnsOnCall(i int, result1 map[string]map[string]interface{}) + func (fake *MetricsRegistry) GetArgsForCall(i int) string + func (fake *MetricsRegistry) GetCallCount() int + func (fake *MetricsRegistry) GetOrRegister(arg1 string, arg2 interface{}) interface{} + func (fake *MetricsRegistry) GetOrRegisterArgsForCall(i int) (string, interface{}) + func (fake *MetricsRegistry) GetOrRegisterCallCount() int + func (fake *MetricsRegistry) GetOrRegisterReturns(result1 interface{}) + func (fake *MetricsRegistry) GetOrRegisterReturnsOnCall(i int, result1 interface{}) + func (fake *MetricsRegistry) GetReturns(result1 interface{}) + func (fake *MetricsRegistry) GetReturnsOnCall(i int, result1 interface{}) + func (fake *MetricsRegistry) Invocations() map[string][][]interface{} + func (fake *MetricsRegistry) Register(arg1 string, arg2 interface{}) error + func (fake *MetricsRegistry) RegisterArgsForCall(i int) (string, interface{}) + func (fake *MetricsRegistry) RegisterCallCount() int + func (fake *MetricsRegistry) RegisterReturns(result1 error) + func (fake *MetricsRegistry) RegisterReturnsOnCall(i int, result1 error) + func (fake *MetricsRegistry) RunHealthchecks() + func (fake *MetricsRegistry) RunHealthchecksCallCount() int + func (fake *MetricsRegistry) Unregister(arg1 string) + func (fake *MetricsRegistry) UnregisterAll() + func (fake *MetricsRegistry) UnregisterAllCallCount() int + func (fake *MetricsRegistry) UnregisterArgsForCall(i int) string + func (fake *MetricsRegistry) UnregisterCallCount() int + type SyncProducer struct + CloseStub func() error + SendMessageStub func(*sarama.ProducerMessage) (int32, int64, error) + SendMessagesStub func([]*sarama.ProducerMessage) error + func (fake *SyncProducer) Close() error + func (fake *SyncProducer) CloseCallCount() int + func (fake *SyncProducer) CloseCalls(stub func() error) + func (fake *SyncProducer) CloseReturns(result1 error) + func (fake *SyncProducer) CloseReturnsOnCall(i int, result1 error) + func (fake *SyncProducer) Invocations() map[string][][]interface{} + func (fake *SyncProducer) SendMessage(arg1 *sarama.ProducerMessage) (int32, int64, error) + func (fake *SyncProducer) SendMessageArgsForCall(i int) *sarama.ProducerMessage + func (fake *SyncProducer) SendMessageCallCount() int + func (fake *SyncProducer) SendMessageCalls(stub func(*sarama.ProducerMessage) (int32, int64, error)) + func (fake *SyncProducer) SendMessageReturns(result1 int32, result2 int64, result3 error) + func (fake *SyncProducer) SendMessageReturnsOnCall(i int, result1 int32, result2 int64, result3 error) + func (fake *SyncProducer) SendMessages(arg1 []*sarama.ProducerMessage) error + func (fake *SyncProducer) SendMessagesArgsForCall(i int) []*sarama.ProducerMessage + func (fake *SyncProducer) SendMessagesCallCount() int + func (fake *SyncProducer) SendMessagesCalls(stub func([]*sarama.ProducerMessage) error) + func (fake *SyncProducer) SendMessagesReturns(result1 error) + func (fake *SyncProducer) SendMessagesReturnsOnCall(i int, result1 error)