fabric: github.com/hyperledger/fabric/orderer/consensus/kafka/mock Index | Files

package mock

import "github.com/hyperledger/fabric/orderer/consensus/kafka/mock"

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

Package Files

health_checker.go metrics_gauge.go metrics_histogram.go metrics_meter.go metrics_provider.go metrics_registry.go sync_producer.go

type HealthChecker Uses

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

func (*HealthChecker) Invocations Uses

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

func (*HealthChecker) RegisterChecker Uses

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

func (*HealthChecker) RegisterCheckerArgsForCall Uses

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

func (*HealthChecker) RegisterCheckerCallCount Uses

func (fake *HealthChecker) RegisterCheckerCallCount() int

func (*HealthChecker) RegisterCheckerCalls Uses

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

func (*HealthChecker) RegisterCheckerReturns Uses

func (fake *HealthChecker) RegisterCheckerReturns(result1 error)

func (*HealthChecker) RegisterCheckerReturnsOnCall Uses

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

type MetricsGauge Uses

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 Uses

func (fake *MetricsGauge) Add(delta float64)

func (*MetricsGauge) AddArgsForCall Uses

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

func (*MetricsGauge) AddCallCount Uses

func (fake *MetricsGauge) AddCallCount() int

func (*MetricsGauge) Invocations Uses

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

func (*MetricsGauge) Set Uses

func (fake *MetricsGauge) Set(value float64)

func (*MetricsGauge) SetArgsForCall Uses

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

func (*MetricsGauge) SetCallCount Uses

func (fake *MetricsGauge) SetCallCount() int

func (*MetricsGauge) With Uses

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

func (*MetricsGauge) WithArgsForCall Uses

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

func (*MetricsGauge) WithCallCount Uses

func (fake *MetricsGauge) WithCallCount() int

func (*MetricsGauge) WithReturns Uses

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

func (*MetricsGauge) WithReturnsOnCall Uses

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

type MetricsHistogram Uses

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 Uses

func (fake *MetricsHistogram) Clear()

func (*MetricsHistogram) ClearCallCount Uses

func (fake *MetricsHistogram) ClearCallCount() int

func (*MetricsHistogram) Count Uses

func (fake *MetricsHistogram) Count() int64

func (*MetricsHistogram) CountCallCount Uses

func (fake *MetricsHistogram) CountCallCount() int

func (*MetricsHistogram) CountReturns Uses

func (fake *MetricsHistogram) CountReturns(result1 int64)

func (*MetricsHistogram) CountReturnsOnCall Uses

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

func (*MetricsHistogram) Invocations Uses

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

func (*MetricsHistogram) Max Uses

func (fake *MetricsHistogram) Max() int64

func (*MetricsHistogram) MaxCallCount Uses

func (fake *MetricsHistogram) MaxCallCount() int

func (*MetricsHistogram) MaxReturns Uses

func (fake *MetricsHistogram) MaxReturns(result1 int64)

func (*MetricsHistogram) MaxReturnsOnCall Uses

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

func (*MetricsHistogram) Mean Uses

func (fake *MetricsHistogram) Mean() float64

func (*MetricsHistogram) MeanCallCount Uses

func (fake *MetricsHistogram) MeanCallCount() int

func (*MetricsHistogram) MeanReturns Uses

func (fake *MetricsHistogram) MeanReturns(result1 float64)

func (*MetricsHistogram) MeanReturnsOnCall Uses

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

func (*MetricsHistogram) Min Uses

func (fake *MetricsHistogram) Min() int64

func (*MetricsHistogram) MinCallCount Uses

func (fake *MetricsHistogram) MinCallCount() int

func (*MetricsHistogram) MinReturns Uses

func (fake *MetricsHistogram) MinReturns(result1 int64)

func (*MetricsHistogram) MinReturnsOnCall Uses

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

func (*MetricsHistogram) Percentile Uses

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

func (*MetricsHistogram) PercentileArgsForCall Uses

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

func (*MetricsHistogram) PercentileCallCount Uses

func (fake *MetricsHistogram) PercentileCallCount() int

func (*MetricsHistogram) PercentileReturns Uses

func (fake *MetricsHistogram) PercentileReturns(result1 float64)

func (*MetricsHistogram) PercentileReturnsOnCall Uses

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

func (*MetricsHistogram) Percentiles Uses

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

func (*MetricsHistogram) PercentilesArgsForCall Uses

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

func (*MetricsHistogram) PercentilesCallCount Uses

func (fake *MetricsHistogram) PercentilesCallCount() int

func (*MetricsHistogram) PercentilesReturns Uses

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

func (*MetricsHistogram) PercentilesReturnsOnCall Uses

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

func (*MetricsHistogram) Sample Uses

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

func (*MetricsHistogram) SampleCallCount Uses

func (fake *MetricsHistogram) SampleCallCount() int

func (*MetricsHistogram) SampleReturns Uses

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

func (*MetricsHistogram) SampleReturnsOnCall Uses

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

func (*MetricsHistogram) Snapshot Uses

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

func (*MetricsHistogram) SnapshotCallCount Uses

func (fake *MetricsHistogram) SnapshotCallCount() int

func (*MetricsHistogram) SnapshotReturns Uses

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

func (*MetricsHistogram) SnapshotReturnsOnCall Uses

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

func (*MetricsHistogram) StdDev Uses

func (fake *MetricsHistogram) StdDev() float64

func (*MetricsHistogram) StdDevCallCount Uses

func (fake *MetricsHistogram) StdDevCallCount() int

func (*MetricsHistogram) StdDevReturns Uses

func (fake *MetricsHistogram) StdDevReturns(result1 float64)

func (*MetricsHistogram) StdDevReturnsOnCall Uses

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

func (*MetricsHistogram) Sum Uses

func (fake *MetricsHistogram) Sum() int64

func (*MetricsHistogram) SumCallCount Uses

func (fake *MetricsHistogram) SumCallCount() int

func (*MetricsHistogram) SumReturns Uses

func (fake *MetricsHistogram) SumReturns(result1 int64)

func (*MetricsHistogram) SumReturnsOnCall Uses

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

func (*MetricsHistogram) Update Uses

func (fake *MetricsHistogram) Update(arg1 int64)

func (*MetricsHistogram) UpdateArgsForCall Uses

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

func (*MetricsHistogram) UpdateCallCount Uses

func (fake *MetricsHistogram) UpdateCallCount() int

func (*MetricsHistogram) Variance Uses

func (fake *MetricsHistogram) Variance() float64

func (*MetricsHistogram) VarianceCallCount Uses

func (fake *MetricsHistogram) VarianceCallCount() int

func (*MetricsHistogram) VarianceReturns Uses

func (fake *MetricsHistogram) VarianceReturns(result1 float64)

func (*MetricsHistogram) VarianceReturnsOnCall Uses

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

type MetricsMeter Uses

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 Uses

func (fake *MetricsMeter) Count() int64

func (*MetricsMeter) CountCallCount Uses

func (fake *MetricsMeter) CountCallCount() int

func (*MetricsMeter) CountReturns Uses

func (fake *MetricsMeter) CountReturns(result1 int64)

func (*MetricsMeter) CountReturnsOnCall Uses

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

func (*MetricsMeter) Invocations Uses

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

func (*MetricsMeter) Mark Uses

func (fake *MetricsMeter) Mark(arg1 int64)

func (*MetricsMeter) MarkArgsForCall Uses

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

func (*MetricsMeter) MarkCallCount Uses

func (fake *MetricsMeter) MarkCallCount() int

func (*MetricsMeter) Rate1 Uses

func (fake *MetricsMeter) Rate1() float64

func (*MetricsMeter) Rate15 Uses

func (fake *MetricsMeter) Rate15() float64

func (*MetricsMeter) Rate15CallCount Uses

func (fake *MetricsMeter) Rate15CallCount() int

func (*MetricsMeter) Rate15Returns Uses

func (fake *MetricsMeter) Rate15Returns(result1 float64)

func (*MetricsMeter) Rate15ReturnsOnCall Uses

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

func (*MetricsMeter) Rate1CallCount Uses

func (fake *MetricsMeter) Rate1CallCount() int

func (*MetricsMeter) Rate1Returns Uses

func (fake *MetricsMeter) Rate1Returns(result1 float64)

func (*MetricsMeter) Rate1ReturnsOnCall Uses

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

func (*MetricsMeter) Rate5 Uses

func (fake *MetricsMeter) Rate5() float64

func (*MetricsMeter) Rate5CallCount Uses

func (fake *MetricsMeter) Rate5CallCount() int

func (*MetricsMeter) Rate5Returns Uses

func (fake *MetricsMeter) Rate5Returns(result1 float64)

func (*MetricsMeter) Rate5ReturnsOnCall Uses

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

func (*MetricsMeter) RateMean Uses

func (fake *MetricsMeter) RateMean() float64

func (*MetricsMeter) RateMeanCallCount Uses

func (fake *MetricsMeter) RateMeanCallCount() int

func (*MetricsMeter) RateMeanReturns Uses

func (fake *MetricsMeter) RateMeanReturns(result1 float64)

func (*MetricsMeter) RateMeanReturnsOnCall Uses

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

func (*MetricsMeter) Snapshot Uses

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

func (*MetricsMeter) SnapshotCallCount Uses

func (fake *MetricsMeter) SnapshotCallCount() int

func (*MetricsMeter) SnapshotReturns Uses

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

func (*MetricsMeter) SnapshotReturnsOnCall Uses

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

func (*MetricsMeter) Stop Uses

func (fake *MetricsMeter) Stop()

func (*MetricsMeter) StopCallCount Uses

func (fake *MetricsMeter) StopCallCount() int

type MetricsProvider Uses

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 Uses

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

func (*MetricsProvider) NewCounter Uses

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

func (*MetricsProvider) NewCounterArgsForCall Uses

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

func (*MetricsProvider) NewCounterCallCount Uses

func (fake *MetricsProvider) NewCounterCallCount() int

func (*MetricsProvider) NewCounterReturns Uses

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

func (*MetricsProvider) NewCounterReturnsOnCall Uses

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

func (*MetricsProvider) NewGauge Uses

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

func (*MetricsProvider) NewGaugeArgsForCall Uses

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

func (*MetricsProvider) NewGaugeCallCount Uses

func (fake *MetricsProvider) NewGaugeCallCount() int

func (*MetricsProvider) NewGaugeReturns Uses

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

func (*MetricsProvider) NewGaugeReturnsOnCall Uses

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

func (*MetricsProvider) NewHistogram Uses

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

func (*MetricsProvider) NewHistogramArgsForCall Uses

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

func (*MetricsProvider) NewHistogramCallCount Uses

func (fake *MetricsProvider) NewHistogramCallCount() int

func (*MetricsProvider) NewHistogramReturns Uses

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

func (*MetricsProvider) NewHistogramReturnsOnCall Uses

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

type MetricsRegistry Uses

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 Uses

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

func (*MetricsRegistry) EachArgsForCall Uses

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

func (*MetricsRegistry) EachCallCount Uses

func (fake *MetricsRegistry) EachCallCount() int

func (*MetricsRegistry) Get Uses

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

func (*MetricsRegistry) GetAll Uses

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

func (*MetricsRegistry) GetAllCallCount Uses

func (fake *MetricsRegistry) GetAllCallCount() int

func (*MetricsRegistry) GetAllReturns Uses

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

func (*MetricsRegistry) GetAllReturnsOnCall Uses

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

func (*MetricsRegistry) GetArgsForCall Uses

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

func (*MetricsRegistry) GetCallCount Uses

func (fake *MetricsRegistry) GetCallCount() int

func (*MetricsRegistry) GetOrRegister Uses

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

func (*MetricsRegistry) GetOrRegisterArgsForCall Uses

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

func (*MetricsRegistry) GetOrRegisterCallCount Uses

func (fake *MetricsRegistry) GetOrRegisterCallCount() int

func (*MetricsRegistry) GetOrRegisterReturns Uses

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

func (*MetricsRegistry) GetOrRegisterReturnsOnCall Uses

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

func (*MetricsRegistry) GetReturns Uses

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

func (*MetricsRegistry) GetReturnsOnCall Uses

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

func (*MetricsRegistry) Invocations Uses

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

func (*MetricsRegistry) Register Uses

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

func (*MetricsRegistry) RegisterArgsForCall Uses

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

func (*MetricsRegistry) RegisterCallCount Uses

func (fake *MetricsRegistry) RegisterCallCount() int

func (*MetricsRegistry) RegisterReturns Uses

func (fake *MetricsRegistry) RegisterReturns(result1 error)

func (*MetricsRegistry) RegisterReturnsOnCall Uses

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

func (*MetricsRegistry) RunHealthchecks Uses

func (fake *MetricsRegistry) RunHealthchecks()

func (*MetricsRegistry) RunHealthchecksCallCount Uses

func (fake *MetricsRegistry) RunHealthchecksCallCount() int

func (*MetricsRegistry) Unregister Uses

func (fake *MetricsRegistry) Unregister(arg1 string)

func (*MetricsRegistry) UnregisterAll Uses

func (fake *MetricsRegistry) UnregisterAll()

func (*MetricsRegistry) UnregisterAllCallCount Uses

func (fake *MetricsRegistry) UnregisterAllCallCount() int

func (*MetricsRegistry) UnregisterArgsForCall Uses

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

func (*MetricsRegistry) UnregisterCallCount Uses

func (fake *MetricsRegistry) UnregisterCallCount() int

type SyncProducer Uses

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 Uses

func (fake *SyncProducer) Close() error

func (*SyncProducer) CloseCallCount Uses

func (fake *SyncProducer) CloseCallCount() int

func (*SyncProducer) CloseCalls Uses

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

func (*SyncProducer) CloseReturns Uses

func (fake *SyncProducer) CloseReturns(result1 error)

func (*SyncProducer) CloseReturnsOnCall Uses

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

func (*SyncProducer) Invocations Uses

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

func (*SyncProducer) SendMessage Uses

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

func (*SyncProducer) SendMessageArgsForCall Uses

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

func (*SyncProducer) SendMessageCallCount Uses

func (fake *SyncProducer) SendMessageCallCount() int

func (*SyncProducer) SendMessageCalls Uses

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

func (*SyncProducer) SendMessageReturns Uses

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

func (*SyncProducer) SendMessageReturnsOnCall Uses

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

func (*SyncProducer) SendMessages Uses

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

func (*SyncProducer) SendMessagesArgsForCall Uses

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

func (*SyncProducer) SendMessagesCallCount Uses

func (fake *SyncProducer) SendMessagesCallCount() int

func (*SyncProducer) SendMessagesCalls Uses

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

func (*SyncProducer) SendMessagesReturns Uses

func (fake *SyncProducer) SendMessagesReturns(result1 error)

func (*SyncProducer) SendMessagesReturnsOnCall Uses

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

Package mock imports 5 packages (graph). Updated 2019-03-13. Refresh now. Tools for package owners.