mock

package
v1.4.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 26, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HealthChecker added in v1.4.1

type HealthChecker struct {
	RegisterCheckerStub func(string, healthz.HealthChecker) error
	// contains filtered or unexported fields
}

func (*HealthChecker) Invocations added in v1.4.1

func (fake *HealthChecker) Invocations() map[string][][]interface{}

func (*HealthChecker) RegisterChecker added in v1.4.1

func (fake *HealthChecker) RegisterChecker(arg1 string, arg2 healthz.HealthChecker) error

func (*HealthChecker) RegisterCheckerArgsForCall added in v1.4.1

func (fake *HealthChecker) RegisterCheckerArgsForCall(i int) (string, healthz.HealthChecker)

func (*HealthChecker) RegisterCheckerCallCount added in v1.4.1

func (fake *HealthChecker) RegisterCheckerCallCount() int

func (*HealthChecker) RegisterCheckerCalls added in v1.4.1

func (fake *HealthChecker) RegisterCheckerCalls(stub func(string, healthz.HealthChecker) error)

func (*HealthChecker) RegisterCheckerReturns added in v1.4.1

func (fake *HealthChecker) RegisterCheckerReturns(result1 error)

func (*HealthChecker) RegisterCheckerReturnsOnCall added in v1.4.1

func (fake *HealthChecker) RegisterCheckerReturnsOnCall(i int, result1 error)

type MetricsGauge

type MetricsGauge struct {
	WithStub func(labelValues ...string) metrics.Gauge

	AddStub func(delta float64)

	SetStub func(value float64)
	// contains filtered or unexported fields
}

func (*MetricsGauge) Add

func (fake *MetricsGauge) Add(delta float64)

func (*MetricsGauge) AddArgsForCall

func (fake *MetricsGauge) AddArgsForCall(i int) float64

func (*MetricsGauge) AddCallCount

func (fake *MetricsGauge) AddCallCount() int

func (*MetricsGauge) Invocations

func (fake *MetricsGauge) Invocations() map[string][][]interface{}

func (*MetricsGauge) Set

func (fake *MetricsGauge) Set(value float64)

func (*MetricsGauge) SetArgsForCall

func (fake *MetricsGauge) SetArgsForCall(i int) float64

func (*MetricsGauge) SetCallCount

func (fake *MetricsGauge) SetCallCount() int

func (*MetricsGauge) With

func (fake *MetricsGauge) With(labelValues ...string) metrics.Gauge

func (*MetricsGauge) WithArgsForCall

func (fake *MetricsGauge) WithArgsForCall(i int) []string

func (*MetricsGauge) WithCallCount

func (fake *MetricsGauge) WithCallCount() int

func (*MetricsGauge) WithReturns

func (fake *MetricsGauge) WithReturns(result1 metrics.Gauge)

func (*MetricsGauge) WithReturnsOnCall

func (fake *MetricsGauge) WithReturnsOnCall(i int, result1 metrics.Gauge)

type MetricsHistogram

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
	// contains filtered or unexported fields
}

func (*MetricsHistogram) Clear

func (fake *MetricsHistogram) Clear()

func (*MetricsHistogram) ClearCallCount

func (fake *MetricsHistogram) ClearCallCount() int

func (*MetricsHistogram) Count

func (fake *MetricsHistogram) Count() int64

func (*MetricsHistogram) CountCallCount

func (fake *MetricsHistogram) CountCallCount() int

func (*MetricsHistogram) CountReturns

func (fake *MetricsHistogram) CountReturns(result1 int64)

func (*MetricsHistogram) CountReturnsOnCall

func (fake *MetricsHistogram) CountReturnsOnCall(i int, result1 int64)

func (*MetricsHistogram) Invocations

func (fake *MetricsHistogram) Invocations() map[string][][]interface{}

func (*MetricsHistogram) Max

func (fake *MetricsHistogram) Max() int64

func (*MetricsHistogram) MaxCallCount

func (fake *MetricsHistogram) MaxCallCount() int

func (*MetricsHistogram) MaxReturns

func (fake *MetricsHistogram) MaxReturns(result1 int64)

func (*MetricsHistogram) MaxReturnsOnCall

func (fake *MetricsHistogram) MaxReturnsOnCall(i int, result1 int64)

func (*MetricsHistogram) Mean

func (fake *MetricsHistogram) Mean() float64

func (*MetricsHistogram) MeanCallCount

func (fake *MetricsHistogram) MeanCallCount() int

func (*MetricsHistogram) MeanReturns

func (fake *MetricsHistogram) MeanReturns(result1 float64)

func (*MetricsHistogram) MeanReturnsOnCall

func (fake *MetricsHistogram) MeanReturnsOnCall(i int, result1 float64)

func (*MetricsHistogram) Min

func (fake *MetricsHistogram) Min() int64

func (*MetricsHistogram) MinCallCount

func (fake *MetricsHistogram) MinCallCount() int

func (*MetricsHistogram) MinReturns

func (fake *MetricsHistogram) MinReturns(result1 int64)

func (*MetricsHistogram) MinReturnsOnCall

func (fake *MetricsHistogram) MinReturnsOnCall(i int, result1 int64)

func (*MetricsHistogram) Percentile

func (fake *MetricsHistogram) Percentile(arg1 float64) float64

func (*MetricsHistogram) PercentileArgsForCall

func (fake *MetricsHistogram) PercentileArgsForCall(i int) float64

func (*MetricsHistogram) PercentileCallCount

func (fake *MetricsHistogram) PercentileCallCount() int

func (*MetricsHistogram) PercentileReturns

func (fake *MetricsHistogram) PercentileReturns(result1 float64)

func (*MetricsHistogram) PercentileReturnsOnCall

func (fake *MetricsHistogram) PercentileReturnsOnCall(i int, result1 float64)

func (*MetricsHistogram) Percentiles

func (fake *MetricsHistogram) Percentiles(arg1 []float64) []float64

func (*MetricsHistogram) PercentilesArgsForCall

func (fake *MetricsHistogram) PercentilesArgsForCall(i int) []float64

func (*MetricsHistogram) PercentilesCallCount

func (fake *MetricsHistogram) PercentilesCallCount() int

func (*MetricsHistogram) PercentilesReturns

func (fake *MetricsHistogram) PercentilesReturns(result1 []float64)

func (*MetricsHistogram) PercentilesReturnsOnCall

func (fake *MetricsHistogram) PercentilesReturnsOnCall(i int, result1 []float64)

func (*MetricsHistogram) Sample

func (fake *MetricsHistogram) Sample() go_metrics.Sample

func (*MetricsHistogram) SampleCallCount

func (fake *MetricsHistogram) SampleCallCount() int

func (*MetricsHistogram) SampleReturns

func (fake *MetricsHistogram) SampleReturns(result1 go_metrics.Sample)

func (*MetricsHistogram) SampleReturnsOnCall

func (fake *MetricsHistogram) SampleReturnsOnCall(i int, result1 go_metrics.Sample)

func (*MetricsHistogram) Snapshot

func (fake *MetricsHistogram) Snapshot() go_metrics.Histogram

func (*MetricsHistogram) SnapshotCallCount

func (fake *MetricsHistogram) SnapshotCallCount() int

func (*MetricsHistogram) SnapshotReturns

func (fake *MetricsHistogram) SnapshotReturns(result1 go_metrics.Histogram)

func (*MetricsHistogram) SnapshotReturnsOnCall

func (fake *MetricsHistogram) SnapshotReturnsOnCall(i int, result1 go_metrics.Histogram)

func (*MetricsHistogram) StdDev

func (fake *MetricsHistogram) StdDev() float64

func (*MetricsHistogram) StdDevCallCount

func (fake *MetricsHistogram) StdDevCallCount() int

func (*MetricsHistogram) StdDevReturns

func (fake *MetricsHistogram) StdDevReturns(result1 float64)

func (*MetricsHistogram) StdDevReturnsOnCall

func (fake *MetricsHistogram) StdDevReturnsOnCall(i int, result1 float64)

func (*MetricsHistogram) Sum

func (fake *MetricsHistogram) Sum() int64

func (*MetricsHistogram) SumCallCount

func (fake *MetricsHistogram) SumCallCount() int

func (*MetricsHistogram) SumReturns

func (fake *MetricsHistogram) SumReturns(result1 int64)

func (*MetricsHistogram) SumReturnsOnCall

func (fake *MetricsHistogram) SumReturnsOnCall(i int, result1 int64)

func (*MetricsHistogram) Update

func (fake *MetricsHistogram) Update(arg1 int64)

func (*MetricsHistogram) UpdateArgsForCall

func (fake *MetricsHistogram) UpdateArgsForCall(i int) int64

func (*MetricsHistogram) UpdateCallCount

func (fake *MetricsHistogram) UpdateCallCount() int

func (*MetricsHistogram) Variance

func (fake *MetricsHistogram) Variance() float64

func (*MetricsHistogram) VarianceCallCount

func (fake *MetricsHistogram) VarianceCallCount() int

func (*MetricsHistogram) VarianceReturns

func (fake *MetricsHistogram) VarianceReturns(result1 float64)

func (*MetricsHistogram) VarianceReturnsOnCall

func (fake *MetricsHistogram) VarianceReturnsOnCall(i int, result1 float64)

type MetricsMeter

type MetricsMeter struct {
	CountStub func() int64

	MarkStub func(int64)

	Rate1Stub func() float64

	Rate5Stub func() float64

	Rate15Stub func() float64

	RateMeanStub func() float64

	SnapshotStub func() go_metrics.Meter

	StopStub func()
	// contains filtered or unexported fields
}

func (*MetricsMeter) Count

func (fake *MetricsMeter) Count() int64

func (*MetricsMeter) CountCallCount

func (fake *MetricsMeter) CountCallCount() int

func (*MetricsMeter) CountReturns

func (fake *MetricsMeter) CountReturns(result1 int64)

func (*MetricsMeter) CountReturnsOnCall

func (fake *MetricsMeter) CountReturnsOnCall(i int, result1 int64)

func (*MetricsMeter) Invocations

func (fake *MetricsMeter) Invocations() map[string][][]interface{}

func (*MetricsMeter) Mark

func (fake *MetricsMeter) Mark(arg1 int64)

func (*MetricsMeter) MarkArgsForCall

func (fake *MetricsMeter) MarkArgsForCall(i int) int64

func (*MetricsMeter) MarkCallCount

func (fake *MetricsMeter) MarkCallCount() int

func (*MetricsMeter) Rate1

func (fake *MetricsMeter) Rate1() float64

func (*MetricsMeter) Rate15

func (fake *MetricsMeter) Rate15() float64

func (*MetricsMeter) Rate15CallCount

func (fake *MetricsMeter) Rate15CallCount() int

func (*MetricsMeter) Rate15Returns

func (fake *MetricsMeter) Rate15Returns(result1 float64)

func (*MetricsMeter) Rate15ReturnsOnCall

func (fake *MetricsMeter) Rate15ReturnsOnCall(i int, result1 float64)

func (*MetricsMeter) Rate1CallCount

func (fake *MetricsMeter) Rate1CallCount() int

func (*MetricsMeter) Rate1Returns

func (fake *MetricsMeter) Rate1Returns(result1 float64)

func (*MetricsMeter) Rate1ReturnsOnCall

func (fake *MetricsMeter) Rate1ReturnsOnCall(i int, result1 float64)

func (*MetricsMeter) Rate5

func (fake *MetricsMeter) Rate5() float64

func (*MetricsMeter) Rate5CallCount

func (fake *MetricsMeter) Rate5CallCount() int

func (*MetricsMeter) Rate5Returns

func (fake *MetricsMeter) Rate5Returns(result1 float64)

func (*MetricsMeter) Rate5ReturnsOnCall

func (fake *MetricsMeter) Rate5ReturnsOnCall(i int, result1 float64)

func (*MetricsMeter) RateMean

func (fake *MetricsMeter) RateMean() float64

func (*MetricsMeter) RateMeanCallCount

func (fake *MetricsMeter) RateMeanCallCount() int

func (*MetricsMeter) RateMeanReturns

func (fake *MetricsMeter) RateMeanReturns(result1 float64)

func (*MetricsMeter) RateMeanReturnsOnCall

func (fake *MetricsMeter) RateMeanReturnsOnCall(i int, result1 float64)

func (*MetricsMeter) Snapshot

func (fake *MetricsMeter) Snapshot() go_metrics.Meter

func (*MetricsMeter) SnapshotCallCount

func (fake *MetricsMeter) SnapshotCallCount() int

func (*MetricsMeter) SnapshotReturns

func (fake *MetricsMeter) SnapshotReturns(result1 go_metrics.Meter)

func (*MetricsMeter) SnapshotReturnsOnCall

func (fake *MetricsMeter) SnapshotReturnsOnCall(i int, result1 go_metrics.Meter)

func (*MetricsMeter) Stop

func (fake *MetricsMeter) Stop()

func (*MetricsMeter) StopCallCount

func (fake *MetricsMeter) StopCallCount() int

type MetricsProvider

type MetricsProvider struct {
	NewCounterStub func(metrics.CounterOpts) metrics.Counter

	NewGaugeStub func(metrics.GaugeOpts) metrics.Gauge

	NewHistogramStub func(metrics.HistogramOpts) metrics.Histogram
	// contains filtered or unexported fields
}

func (*MetricsProvider) Invocations

func (fake *MetricsProvider) Invocations() map[string][][]interface{}

func (*MetricsProvider) NewCounter

func (fake *MetricsProvider) NewCounter(arg1 metrics.CounterOpts) metrics.Counter

func (*MetricsProvider) NewCounterArgsForCall

func (fake *MetricsProvider) NewCounterArgsForCall(i int) metrics.CounterOpts

func (*MetricsProvider) NewCounterCallCount

func (fake *MetricsProvider) NewCounterCallCount() int

func (*MetricsProvider) NewCounterReturns

func (fake *MetricsProvider) NewCounterReturns(result1 metrics.Counter)

func (*MetricsProvider) NewCounterReturnsOnCall

func (fake *MetricsProvider) NewCounterReturnsOnCall(i int, result1 metrics.Counter)

func (*MetricsProvider) NewGauge

func (fake *MetricsProvider) NewGauge(arg1 metrics.GaugeOpts) metrics.Gauge

func (*MetricsProvider) NewGaugeArgsForCall

func (fake *MetricsProvider) NewGaugeArgsForCall(i int) metrics.GaugeOpts

func (*MetricsProvider) NewGaugeCallCount

func (fake *MetricsProvider) NewGaugeCallCount() int

func (*MetricsProvider) NewGaugeReturns

func (fake *MetricsProvider) NewGaugeReturns(result1 metrics.Gauge)

func (*MetricsProvider) NewGaugeReturnsOnCall

func (fake *MetricsProvider) NewGaugeReturnsOnCall(i int, result1 metrics.Gauge)

func (*MetricsProvider) NewHistogram

func (fake *MetricsProvider) NewHistogram(arg1 metrics.HistogramOpts) metrics.Histogram

func (*MetricsProvider) NewHistogramArgsForCall

func (fake *MetricsProvider) NewHistogramArgsForCall(i int) metrics.HistogramOpts

func (*MetricsProvider) NewHistogramCallCount

func (fake *MetricsProvider) NewHistogramCallCount() int

func (*MetricsProvider) NewHistogramReturns

func (fake *MetricsProvider) NewHistogramReturns(result1 metrics.Histogram)

func (*MetricsProvider) NewHistogramReturnsOnCall

func (fake *MetricsProvider) NewHistogramReturnsOnCall(i int, result1 metrics.Histogram)

type MetricsRegistry

type MetricsRegistry struct {
	EachStub func(func(string, interface{}))

	GetStub func(string) interface{}

	GetAllStub func() map[string]map[string]interface{}

	GetOrRegisterStub func(string, interface{}) interface{}

	RegisterStub func(string, interface{}) error

	RunHealthchecksStub func()

	UnregisterStub func(string)

	UnregisterAllStub func()
	// contains filtered or unexported fields
}

func (*MetricsRegistry) Each

func (fake *MetricsRegistry) Each(arg1 func(string, interface{}))

func (*MetricsRegistry) EachArgsForCall

func (fake *MetricsRegistry) EachArgsForCall(i int) func(string, interface{})

func (*MetricsRegistry) EachCallCount

func (fake *MetricsRegistry) EachCallCount() int

func (*MetricsRegistry) Get

func (fake *MetricsRegistry) Get(arg1 string) interface{}

func (*MetricsRegistry) GetAll

func (fake *MetricsRegistry) GetAll() map[string]map[string]interface{}

func (*MetricsRegistry) GetAllCallCount

func (fake *MetricsRegistry) GetAllCallCount() int

func (*MetricsRegistry) GetAllReturns

func (fake *MetricsRegistry) GetAllReturns(result1 map[string]map[string]interface{})

func (*MetricsRegistry) GetAllReturnsOnCall

func (fake *MetricsRegistry) GetAllReturnsOnCall(i int, result1 map[string]map[string]interface{})

func (*MetricsRegistry) GetArgsForCall

func (fake *MetricsRegistry) GetArgsForCall(i int) string

func (*MetricsRegistry) GetCallCount

func (fake *MetricsRegistry) GetCallCount() int

func (*MetricsRegistry) GetOrRegister

func (fake *MetricsRegistry) GetOrRegister(arg1 string, arg2 interface{}) interface{}

func (*MetricsRegistry) GetOrRegisterArgsForCall

func (fake *MetricsRegistry) GetOrRegisterArgsForCall(i int) (string, interface{})

func (*MetricsRegistry) GetOrRegisterCallCount

func (fake *MetricsRegistry) GetOrRegisterCallCount() int

func (*MetricsRegistry) GetOrRegisterReturns

func (fake *MetricsRegistry) GetOrRegisterReturns(result1 interface{})

func (*MetricsRegistry) GetOrRegisterReturnsOnCall

func (fake *MetricsRegistry) GetOrRegisterReturnsOnCall(i int, result1 interface{})

func (*MetricsRegistry) GetReturns

func (fake *MetricsRegistry) GetReturns(result1 interface{})

func (*MetricsRegistry) GetReturnsOnCall

func (fake *MetricsRegistry) GetReturnsOnCall(i int, result1 interface{})

func (*MetricsRegistry) Invocations

func (fake *MetricsRegistry) Invocations() map[string][][]interface{}

func (*MetricsRegistry) Register

func (fake *MetricsRegistry) Register(arg1 string, arg2 interface{}) error

func (*MetricsRegistry) RegisterArgsForCall

func (fake *MetricsRegistry) RegisterArgsForCall(i int) (string, interface{})

func (*MetricsRegistry) RegisterCallCount

func (fake *MetricsRegistry) RegisterCallCount() int

func (*MetricsRegistry) RegisterReturns

func (fake *MetricsRegistry) RegisterReturns(result1 error)

func (*MetricsRegistry) RegisterReturnsOnCall

func (fake *MetricsRegistry) RegisterReturnsOnCall(i int, result1 error)

func (*MetricsRegistry) RunHealthchecks

func (fake *MetricsRegistry) RunHealthchecks()

func (*MetricsRegistry) RunHealthchecksCallCount

func (fake *MetricsRegistry) RunHealthchecksCallCount() int

func (*MetricsRegistry) Unregister

func (fake *MetricsRegistry) Unregister(arg1 string)

func (*MetricsRegistry) UnregisterAll

func (fake *MetricsRegistry) UnregisterAll()

func (*MetricsRegistry) UnregisterAllCallCount

func (fake *MetricsRegistry) UnregisterAllCallCount() int

func (*MetricsRegistry) UnregisterArgsForCall

func (fake *MetricsRegistry) UnregisterArgsForCall(i int) string

func (*MetricsRegistry) UnregisterCallCount

func (fake *MetricsRegistry) UnregisterCallCount() int

type SyncProducer added in v1.4.1

type SyncProducer struct {
	CloseStub func() error

	SendMessageStub func(*sarama.ProducerMessage) (int32, int64, error)

	SendMessagesStub func([]*sarama.ProducerMessage) error
	// contains filtered or unexported fields
}

func (*SyncProducer) Close added in v1.4.1

func (fake *SyncProducer) Close() error

func (*SyncProducer) CloseCallCount added in v1.4.1

func (fake *SyncProducer) CloseCallCount() int

func (*SyncProducer) CloseCalls added in v1.4.1

func (fake *SyncProducer) CloseCalls(stub func() error)

func (*SyncProducer) CloseReturns added in v1.4.1

func (fake *SyncProducer) CloseReturns(result1 error)

func (*SyncProducer) CloseReturnsOnCall added in v1.4.1

func (fake *SyncProducer) CloseReturnsOnCall(i int, result1 error)

func (*SyncProducer) Invocations added in v1.4.1

func (fake *SyncProducer) Invocations() map[string][][]interface{}

func (*SyncProducer) SendMessage added in v1.4.1

func (fake *SyncProducer) SendMessage(arg1 *sarama.ProducerMessage) (int32, int64, error)

func (*SyncProducer) SendMessageArgsForCall added in v1.4.1

func (fake *SyncProducer) SendMessageArgsForCall(i int) *sarama.ProducerMessage

func (*SyncProducer) SendMessageCallCount added in v1.4.1

func (fake *SyncProducer) SendMessageCallCount() int

func (*SyncProducer) SendMessageCalls added in v1.4.1

func (fake *SyncProducer) SendMessageCalls(stub func(*sarama.ProducerMessage) (int32, int64, error))

func (*SyncProducer) SendMessageReturns added in v1.4.1

func (fake *SyncProducer) SendMessageReturns(result1 int32, result2 int64, result3 error)

func (*SyncProducer) SendMessageReturnsOnCall added in v1.4.1

func (fake *SyncProducer) SendMessageReturnsOnCall(i int, result1 int32, result2 int64, result3 error)

func (*SyncProducer) SendMessages added in v1.4.1

func (fake *SyncProducer) SendMessages(arg1 []*sarama.ProducerMessage) error

func (*SyncProducer) SendMessagesArgsForCall added in v1.4.1

func (fake *SyncProducer) SendMessagesArgsForCall(i int) []*sarama.ProducerMessage

func (*SyncProducer) SendMessagesCallCount added in v1.4.1

func (fake *SyncProducer) SendMessagesCallCount() int

func (*SyncProducer) SendMessagesCalls added in v1.4.1

func (fake *SyncProducer) SendMessagesCalls(stub func([]*sarama.ProducerMessage) error)

func (*SyncProducer) SendMessagesReturns added in v1.4.1

func (fake *SyncProducer) SendMessagesReturns(result1 error)

func (*SyncProducer) SendMessagesReturnsOnCall added in v1.4.1

func (fake *SyncProducer) SendMessagesReturnsOnCall(i int, result1 error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL