mock

package
v2.0.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2020 License: Apache-2.0 Imports: 9 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.

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 ChannelCapabilities

type ChannelCapabilities struct {
	ConsensusTypeMigrationStub func() bool

	MSPVersionStub func() msp.MSPVersion

	OrgSpecificOrdererEndpointsStub func() bool

	SupportedStub func() error
	// contains filtered or unexported fields
}

func (*ChannelCapabilities) ConsensusTypeMigration

func (fake *ChannelCapabilities) ConsensusTypeMigration() bool

func (*ChannelCapabilities) ConsensusTypeMigrationCallCount

func (fake *ChannelCapabilities) ConsensusTypeMigrationCallCount() int

func (*ChannelCapabilities) ConsensusTypeMigrationCalls

func (fake *ChannelCapabilities) ConsensusTypeMigrationCalls(stub func() bool)

func (*ChannelCapabilities) ConsensusTypeMigrationReturns

func (fake *ChannelCapabilities) ConsensusTypeMigrationReturns(result1 bool)

func (*ChannelCapabilities) ConsensusTypeMigrationReturnsOnCall

func (fake *ChannelCapabilities) ConsensusTypeMigrationReturnsOnCall(i int, result1 bool)

func (*ChannelCapabilities) Invocations

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

func (*ChannelCapabilities) MSPVersion

func (fake *ChannelCapabilities) MSPVersion() msp.MSPVersion

func (*ChannelCapabilities) MSPVersionCallCount

func (fake *ChannelCapabilities) MSPVersionCallCount() int

func (*ChannelCapabilities) MSPVersionCalls

func (fake *ChannelCapabilities) MSPVersionCalls(stub func() msp.MSPVersion)

func (*ChannelCapabilities) MSPVersionReturns

func (fake *ChannelCapabilities) MSPVersionReturns(result1 msp.MSPVersion)

func (*ChannelCapabilities) MSPVersionReturnsOnCall

func (fake *ChannelCapabilities) MSPVersionReturnsOnCall(i int, result1 msp.MSPVersion)

func (*ChannelCapabilities) OrgSpecificOrdererEndpoints

func (fake *ChannelCapabilities) OrgSpecificOrdererEndpoints() bool

func (*ChannelCapabilities) OrgSpecificOrdererEndpointsCallCount

func (fake *ChannelCapabilities) OrgSpecificOrdererEndpointsCallCount() int

func (*ChannelCapabilities) OrgSpecificOrdererEndpointsCalls

func (fake *ChannelCapabilities) OrgSpecificOrdererEndpointsCalls(stub func() bool)

func (*ChannelCapabilities) OrgSpecificOrdererEndpointsReturns

func (fake *ChannelCapabilities) OrgSpecificOrdererEndpointsReturns(result1 bool)

func (*ChannelCapabilities) OrgSpecificOrdererEndpointsReturnsOnCall

func (fake *ChannelCapabilities) OrgSpecificOrdererEndpointsReturnsOnCall(i int, result1 bool)

func (*ChannelCapabilities) Supported

func (fake *ChannelCapabilities) Supported() error

func (*ChannelCapabilities) SupportedCallCount

func (fake *ChannelCapabilities) SupportedCallCount() int

func (*ChannelCapabilities) SupportedCalls

func (fake *ChannelCapabilities) SupportedCalls(stub func() error)

func (*ChannelCapabilities) SupportedReturns

func (fake *ChannelCapabilities) SupportedReturns(result1 error)

func (*ChannelCapabilities) SupportedReturnsOnCall

func (fake *ChannelCapabilities) SupportedReturnsOnCall(i int, result1 error)

type ChannelConfig

type ChannelConfig struct {
	BlockDataHashingStructureWidthStub func() uint32

	CapabilitiesStub func() channelconfig.ChannelCapabilities

	HashingAlgorithmStub func() func(input []byte) []byte

	OrdererAddressesStub func() []string
	// contains filtered or unexported fields
}

func (*ChannelConfig) BlockDataHashingStructureWidth

func (fake *ChannelConfig) BlockDataHashingStructureWidth() uint32

func (*ChannelConfig) BlockDataHashingStructureWidthCallCount

func (fake *ChannelConfig) BlockDataHashingStructureWidthCallCount() int

func (*ChannelConfig) BlockDataHashingStructureWidthCalls

func (fake *ChannelConfig) BlockDataHashingStructureWidthCalls(stub func() uint32)

func (*ChannelConfig) BlockDataHashingStructureWidthReturns

func (fake *ChannelConfig) BlockDataHashingStructureWidthReturns(result1 uint32)

func (*ChannelConfig) BlockDataHashingStructureWidthReturnsOnCall

func (fake *ChannelConfig) BlockDataHashingStructureWidthReturnsOnCall(i int, result1 uint32)

func (*ChannelConfig) Capabilities

func (fake *ChannelConfig) Capabilities() channelconfig.ChannelCapabilities

func (*ChannelConfig) CapabilitiesCallCount

func (fake *ChannelConfig) CapabilitiesCallCount() int

func (*ChannelConfig) CapabilitiesCalls

func (fake *ChannelConfig) CapabilitiesCalls(stub func() channelconfig.ChannelCapabilities)

func (*ChannelConfig) CapabilitiesReturns

func (fake *ChannelConfig) CapabilitiesReturns(result1 channelconfig.ChannelCapabilities)

func (*ChannelConfig) CapabilitiesReturnsOnCall

func (fake *ChannelConfig) CapabilitiesReturnsOnCall(i int, result1 channelconfig.ChannelCapabilities)

func (*ChannelConfig) HashingAlgorithm

func (fake *ChannelConfig) HashingAlgorithm() func(input []byte) []byte

func (*ChannelConfig) HashingAlgorithmCallCount

func (fake *ChannelConfig) HashingAlgorithmCallCount() int

func (*ChannelConfig) HashingAlgorithmCalls

func (fake *ChannelConfig) HashingAlgorithmCalls(stub func() func(input []byte) []byte)

func (*ChannelConfig) HashingAlgorithmReturns

func (fake *ChannelConfig) HashingAlgorithmReturns(result1 func(input []byte) []byte)

func (*ChannelConfig) HashingAlgorithmReturnsOnCall

func (fake *ChannelConfig) HashingAlgorithmReturnsOnCall(i int, result1 func(input []byte) []byte)

func (*ChannelConfig) Invocations

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

func (*ChannelConfig) OrdererAddresses

func (fake *ChannelConfig) OrdererAddresses() []string

func (*ChannelConfig) OrdererAddressesCallCount

func (fake *ChannelConfig) OrdererAddressesCallCount() int

func (*ChannelConfig) OrdererAddressesCalls

func (fake *ChannelConfig) OrdererAddressesCalls(stub func() []string)

func (*ChannelConfig) OrdererAddressesReturns

func (fake *ChannelConfig) OrdererAddressesReturns(result1 []string)

func (*ChannelConfig) OrdererAddressesReturnsOnCall

func (fake *ChannelConfig) OrdererAddressesReturnsOnCall(i int, result1 []string)

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 {
	AddStub func(float64)

	SetStub func(float64)

	WithStub func(...string) metrics.Gauge
	// contains filtered or unexported fields
}

func (*MetricsGauge) Add

func (fake *MetricsGauge) Add(arg1 float64)

func (*MetricsGauge) AddArgsForCall

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

func (*MetricsGauge) AddCallCount

func (fake *MetricsGauge) AddCallCount() int

func (*MetricsGauge) AddCalls

func (fake *MetricsGauge) AddCalls(stub func(float64))

func (*MetricsGauge) Invocations

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

func (*MetricsGauge) Set

func (fake *MetricsGauge) Set(arg1 float64)

func (*MetricsGauge) SetArgsForCall

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

func (*MetricsGauge) SetCallCount

func (fake *MetricsGauge) SetCallCount() int

func (*MetricsGauge) SetCalls

func (fake *MetricsGauge) SetCalls(stub func(float64))

func (*MetricsGauge) With

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

func (*MetricsGauge) WithArgsForCall

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

func (*MetricsGauge) WithCallCount

func (fake *MetricsGauge) WithCallCount() int

func (*MetricsGauge) WithCalls

func (fake *MetricsGauge) WithCalls(stub func(...string) metrics.Gauge)

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() metrics.Sample

	SnapshotStub func() 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) ClearCalls

func (fake *MetricsHistogram) ClearCalls(stub func())

func (*MetricsHistogram) Count

func (fake *MetricsHistogram) Count() int64

func (*MetricsHistogram) CountCallCount

func (fake *MetricsHistogram) CountCallCount() int

func (*MetricsHistogram) CountCalls

func (fake *MetricsHistogram) CountCalls(stub func() int64)

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) MaxCalls

func (fake *MetricsHistogram) MaxCalls(stub func() int64)

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) MeanCalls

func (fake *MetricsHistogram) MeanCalls(stub func() float64)

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) MinCalls

func (fake *MetricsHistogram) MinCalls(stub func() int64)

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) PercentileCalls

func (fake *MetricsHistogram) PercentileCalls(stub func(float64) float64)

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) PercentilesCalls

func (fake *MetricsHistogram) PercentilesCalls(stub func([]float64) []float64)

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() metrics.Sample

func (*MetricsHistogram) SampleCallCount

func (fake *MetricsHistogram) SampleCallCount() int

func (*MetricsHistogram) SampleCalls

func (fake *MetricsHistogram) SampleCalls(stub func() metrics.Sample)

func (*MetricsHistogram) SampleReturns

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

func (*MetricsHistogram) SampleReturnsOnCall

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

func (*MetricsHistogram) Snapshot

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

func (*MetricsHistogram) SnapshotCallCount

func (fake *MetricsHistogram) SnapshotCallCount() int

func (*MetricsHistogram) SnapshotCalls

func (fake *MetricsHistogram) SnapshotCalls(stub func() metrics.Histogram)

func (*MetricsHistogram) SnapshotReturns

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

func (*MetricsHistogram) SnapshotReturnsOnCall

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

func (*MetricsHistogram) StdDev

func (fake *MetricsHistogram) StdDev() float64

func (*MetricsHistogram) StdDevCallCount

func (fake *MetricsHistogram) StdDevCallCount() int

func (*MetricsHistogram) StdDevCalls

func (fake *MetricsHistogram) StdDevCalls(stub func() float64)

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) SumCalls

func (fake *MetricsHistogram) SumCalls(stub func() int64)

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) UpdateCalls

func (fake *MetricsHistogram) UpdateCalls(stub func(int64))

func (*MetricsHistogram) Variance

func (fake *MetricsHistogram) Variance() float64

func (*MetricsHistogram) VarianceCallCount

func (fake *MetricsHistogram) VarianceCallCount() int

func (*MetricsHistogram) VarianceCalls

func (fake *MetricsHistogram) VarianceCalls(stub func() float64)

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

	Rate15Stub func() float64

	Rate5Stub func() float64

	RateMeanStub func() float64

	SnapshotStub func() 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) CountCalls

func (fake *MetricsMeter) CountCalls(stub func() int64)

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) MarkCalls

func (fake *MetricsMeter) MarkCalls(stub func(int64))

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) Rate15Calls

func (fake *MetricsMeter) Rate15Calls(stub func() float64)

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) Rate1Calls

func (fake *MetricsMeter) Rate1Calls(stub func() float64)

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) Rate5Calls

func (fake *MetricsMeter) Rate5Calls(stub func() float64)

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) RateMeanCalls

func (fake *MetricsMeter) RateMeanCalls(stub func() float64)

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() metrics.Meter

func (*MetricsMeter) SnapshotCallCount

func (fake *MetricsMeter) SnapshotCallCount() int

func (*MetricsMeter) SnapshotCalls

func (fake *MetricsMeter) SnapshotCalls(stub func() metrics.Meter)

func (*MetricsMeter) SnapshotReturns

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

func (*MetricsMeter) SnapshotReturnsOnCall

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

func (*MetricsMeter) Stop

func (fake *MetricsMeter) Stop()

func (*MetricsMeter) StopCallCount

func (fake *MetricsMeter) StopCallCount() int

func (*MetricsMeter) StopCalls

func (fake *MetricsMeter) StopCalls(stub func())

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) NewCounterCalls

func (fake *MetricsProvider) NewCounterCalls(stub func(metrics.CounterOpts) metrics.Counter)

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) NewGaugeCalls

func (fake *MetricsProvider) NewGaugeCalls(stub func(metrics.GaugeOpts) metrics.Gauge)

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) NewHistogramCalls

func (fake *MetricsProvider) NewHistogramCalls(stub func(metrics.HistogramOpts) metrics.Histogram)

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) EachCalls

func (fake *MetricsRegistry) EachCalls(stub func(func(string, interface{})))

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) GetAllCalls

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

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) GetCalls

func (fake *MetricsRegistry) GetCalls(stub func(string) interface{})

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) GetOrRegisterCalls

func (fake *MetricsRegistry) GetOrRegisterCalls(stub func(string, interface{}) interface{})

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) RegisterCalls

func (fake *MetricsRegistry) RegisterCalls(stub func(string, interface{}) error)

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) RunHealthchecksCalls

func (fake *MetricsRegistry) RunHealthchecksCalls(stub func())

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) UnregisterAllCalls

func (fake *MetricsRegistry) UnregisterAllCalls(stub func())

func (*MetricsRegistry) UnregisterArgsForCall

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

func (*MetricsRegistry) UnregisterCallCount

func (fake *MetricsRegistry) UnregisterCallCount() int

func (*MetricsRegistry) UnregisterCalls

func (fake *MetricsRegistry) UnregisterCalls(stub func(string))

type OrdererCapabilities

type OrdererCapabilities struct {
	ConsensusTypeMigrationStub func() bool

	ExpirationCheckStub func() bool

	PredictableChannelTemplateStub func() bool

	ResubmissionStub func() bool

	SupportedStub func() error

	UseChannelCreationPolicyAsAdminsStub func() bool
	// contains filtered or unexported fields
}

func (*OrdererCapabilities) ConsensusTypeMigration

func (fake *OrdererCapabilities) ConsensusTypeMigration() bool

func (*OrdererCapabilities) ConsensusTypeMigrationCallCount

func (fake *OrdererCapabilities) ConsensusTypeMigrationCallCount() int

func (*OrdererCapabilities) ConsensusTypeMigrationCalls

func (fake *OrdererCapabilities) ConsensusTypeMigrationCalls(stub func() bool)

func (*OrdererCapabilities) ConsensusTypeMigrationReturns

func (fake *OrdererCapabilities) ConsensusTypeMigrationReturns(result1 bool)

func (*OrdererCapabilities) ConsensusTypeMigrationReturnsOnCall

func (fake *OrdererCapabilities) ConsensusTypeMigrationReturnsOnCall(i int, result1 bool)

func (*OrdererCapabilities) ExpirationCheck

func (fake *OrdererCapabilities) ExpirationCheck() bool

func (*OrdererCapabilities) ExpirationCheckCallCount

func (fake *OrdererCapabilities) ExpirationCheckCallCount() int

func (*OrdererCapabilities) ExpirationCheckCalls

func (fake *OrdererCapabilities) ExpirationCheckCalls(stub func() bool)

func (*OrdererCapabilities) ExpirationCheckReturns

func (fake *OrdererCapabilities) ExpirationCheckReturns(result1 bool)

func (*OrdererCapabilities) ExpirationCheckReturnsOnCall

func (fake *OrdererCapabilities) ExpirationCheckReturnsOnCall(i int, result1 bool)

func (*OrdererCapabilities) Invocations

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

func (*OrdererCapabilities) PredictableChannelTemplate

func (fake *OrdererCapabilities) PredictableChannelTemplate() bool

func (*OrdererCapabilities) PredictableChannelTemplateCallCount

func (fake *OrdererCapabilities) PredictableChannelTemplateCallCount() int

func (*OrdererCapabilities) PredictableChannelTemplateCalls

func (fake *OrdererCapabilities) PredictableChannelTemplateCalls(stub func() bool)

func (*OrdererCapabilities) PredictableChannelTemplateReturns

func (fake *OrdererCapabilities) PredictableChannelTemplateReturns(result1 bool)

func (*OrdererCapabilities) PredictableChannelTemplateReturnsOnCall

func (fake *OrdererCapabilities) PredictableChannelTemplateReturnsOnCall(i int, result1 bool)

func (*OrdererCapabilities) Resubmission

func (fake *OrdererCapabilities) Resubmission() bool

func (*OrdererCapabilities) ResubmissionCallCount

func (fake *OrdererCapabilities) ResubmissionCallCount() int

func (*OrdererCapabilities) ResubmissionCalls

func (fake *OrdererCapabilities) ResubmissionCalls(stub func() bool)

func (*OrdererCapabilities) ResubmissionReturns

func (fake *OrdererCapabilities) ResubmissionReturns(result1 bool)

func (*OrdererCapabilities) ResubmissionReturnsOnCall

func (fake *OrdererCapabilities) ResubmissionReturnsOnCall(i int, result1 bool)

func (*OrdererCapabilities) Supported

func (fake *OrdererCapabilities) Supported() error

func (*OrdererCapabilities) SupportedCallCount

func (fake *OrdererCapabilities) SupportedCallCount() int

func (*OrdererCapabilities) SupportedCalls

func (fake *OrdererCapabilities) SupportedCalls(stub func() error)

func (*OrdererCapabilities) SupportedReturns

func (fake *OrdererCapabilities) SupportedReturns(result1 error)

func (*OrdererCapabilities) SupportedReturnsOnCall

func (fake *OrdererCapabilities) SupportedReturnsOnCall(i int, result1 error)

func (*OrdererCapabilities) UseChannelCreationPolicyAsAdmins

func (fake *OrdererCapabilities) UseChannelCreationPolicyAsAdmins() bool

func (*OrdererCapabilities) UseChannelCreationPolicyAsAdminsCallCount

func (fake *OrdererCapabilities) UseChannelCreationPolicyAsAdminsCallCount() int

func (*OrdererCapabilities) UseChannelCreationPolicyAsAdminsCalls

func (fake *OrdererCapabilities) UseChannelCreationPolicyAsAdminsCalls(stub func() bool)

func (*OrdererCapabilities) UseChannelCreationPolicyAsAdminsReturns

func (fake *OrdererCapabilities) UseChannelCreationPolicyAsAdminsReturns(result1 bool)

func (*OrdererCapabilities) UseChannelCreationPolicyAsAdminsReturnsOnCall

func (fake *OrdererCapabilities) UseChannelCreationPolicyAsAdminsReturnsOnCall(i int, result1 bool)

type OrdererConfig

type OrdererConfig struct {
	BatchSizeStub func() *orderer.BatchSize

	BatchTimeoutStub func() time.Duration

	CapabilitiesStub func() channelconfig.OrdererCapabilities

	ConsensusMetadataStub func() []byte

	ConsensusStateStub func() orderer.ConsensusType_State

	ConsensusTypeStub func() string

	KafkaBrokersStub func() []string

	MaxChannelsCountStub func() uint64

	OrganizationsStub func() map[string]channelconfig.OrdererOrg
	// contains filtered or unexported fields
}

func (*OrdererConfig) BatchSize

func (fake *OrdererConfig) BatchSize() *orderer.BatchSize

func (*OrdererConfig) BatchSizeCallCount

func (fake *OrdererConfig) BatchSizeCallCount() int

func (*OrdererConfig) BatchSizeCalls

func (fake *OrdererConfig) BatchSizeCalls(stub func() *orderer.BatchSize)

func (*OrdererConfig) BatchSizeReturns

func (fake *OrdererConfig) BatchSizeReturns(result1 *orderer.BatchSize)

func (*OrdererConfig) BatchSizeReturnsOnCall

func (fake *OrdererConfig) BatchSizeReturnsOnCall(i int, result1 *orderer.BatchSize)

func (*OrdererConfig) BatchTimeout

func (fake *OrdererConfig) BatchTimeout() time.Duration

func (*OrdererConfig) BatchTimeoutCallCount

func (fake *OrdererConfig) BatchTimeoutCallCount() int

func (*OrdererConfig) BatchTimeoutCalls

func (fake *OrdererConfig) BatchTimeoutCalls(stub func() time.Duration)

func (*OrdererConfig) BatchTimeoutReturns

func (fake *OrdererConfig) BatchTimeoutReturns(result1 time.Duration)

func (*OrdererConfig) BatchTimeoutReturnsOnCall

func (fake *OrdererConfig) BatchTimeoutReturnsOnCall(i int, result1 time.Duration)

func (*OrdererConfig) Capabilities

func (fake *OrdererConfig) Capabilities() channelconfig.OrdererCapabilities

func (*OrdererConfig) CapabilitiesCallCount

func (fake *OrdererConfig) CapabilitiesCallCount() int

func (*OrdererConfig) CapabilitiesCalls

func (fake *OrdererConfig) CapabilitiesCalls(stub func() channelconfig.OrdererCapabilities)

func (*OrdererConfig) CapabilitiesReturns

func (fake *OrdererConfig) CapabilitiesReturns(result1 channelconfig.OrdererCapabilities)

func (*OrdererConfig) CapabilitiesReturnsOnCall

func (fake *OrdererConfig) CapabilitiesReturnsOnCall(i int, result1 channelconfig.OrdererCapabilities)

func (*OrdererConfig) ConsensusMetadata

func (fake *OrdererConfig) ConsensusMetadata() []byte

func (*OrdererConfig) ConsensusMetadataCallCount

func (fake *OrdererConfig) ConsensusMetadataCallCount() int

func (*OrdererConfig) ConsensusMetadataCalls

func (fake *OrdererConfig) ConsensusMetadataCalls(stub func() []byte)

func (*OrdererConfig) ConsensusMetadataReturns

func (fake *OrdererConfig) ConsensusMetadataReturns(result1 []byte)

func (*OrdererConfig) ConsensusMetadataReturnsOnCall

func (fake *OrdererConfig) ConsensusMetadataReturnsOnCall(i int, result1 []byte)

func (*OrdererConfig) ConsensusState

func (fake *OrdererConfig) ConsensusState() orderer.ConsensusType_State

func (*OrdererConfig) ConsensusStateCallCount

func (fake *OrdererConfig) ConsensusStateCallCount() int

func (*OrdererConfig) ConsensusStateCalls

func (fake *OrdererConfig) ConsensusStateCalls(stub func() orderer.ConsensusType_State)

func (*OrdererConfig) ConsensusStateReturns

func (fake *OrdererConfig) ConsensusStateReturns(result1 orderer.ConsensusType_State)

func (*OrdererConfig) ConsensusStateReturnsOnCall

func (fake *OrdererConfig) ConsensusStateReturnsOnCall(i int, result1 orderer.ConsensusType_State)

func (*OrdererConfig) ConsensusType

func (fake *OrdererConfig) ConsensusType() string

func (*OrdererConfig) ConsensusTypeCallCount

func (fake *OrdererConfig) ConsensusTypeCallCount() int

func (*OrdererConfig) ConsensusTypeCalls

func (fake *OrdererConfig) ConsensusTypeCalls(stub func() string)

func (*OrdererConfig) ConsensusTypeReturns

func (fake *OrdererConfig) ConsensusTypeReturns(result1 string)

func (*OrdererConfig) ConsensusTypeReturnsOnCall

func (fake *OrdererConfig) ConsensusTypeReturnsOnCall(i int, result1 string)

func (*OrdererConfig) Invocations

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

func (*OrdererConfig) KafkaBrokers

func (fake *OrdererConfig) KafkaBrokers() []string

func (*OrdererConfig) KafkaBrokersCallCount

func (fake *OrdererConfig) KafkaBrokersCallCount() int

func (*OrdererConfig) KafkaBrokersCalls

func (fake *OrdererConfig) KafkaBrokersCalls(stub func() []string)

func (*OrdererConfig) KafkaBrokersReturns

func (fake *OrdererConfig) KafkaBrokersReturns(result1 []string)

func (*OrdererConfig) KafkaBrokersReturnsOnCall

func (fake *OrdererConfig) KafkaBrokersReturnsOnCall(i int, result1 []string)

func (*OrdererConfig) MaxChannelsCount

func (fake *OrdererConfig) MaxChannelsCount() uint64

func (*OrdererConfig) MaxChannelsCountCallCount

func (fake *OrdererConfig) MaxChannelsCountCallCount() int

func (*OrdererConfig) MaxChannelsCountCalls

func (fake *OrdererConfig) MaxChannelsCountCalls(stub func() uint64)

func (*OrdererConfig) MaxChannelsCountReturns

func (fake *OrdererConfig) MaxChannelsCountReturns(result1 uint64)

func (*OrdererConfig) MaxChannelsCountReturnsOnCall

func (fake *OrdererConfig) MaxChannelsCountReturnsOnCall(i int, result1 uint64)

func (*OrdererConfig) Organizations

func (fake *OrdererConfig) Organizations() map[string]channelconfig.OrdererOrg

func (*OrdererConfig) OrganizationsCallCount

func (fake *OrdererConfig) OrganizationsCallCount() int

func (*OrdererConfig) OrganizationsCalls

func (fake *OrdererConfig) OrganizationsCalls(stub func() map[string]channelconfig.OrdererOrg)

func (*OrdererConfig) OrganizationsReturns

func (fake *OrdererConfig) OrganizationsReturns(result1 map[string]channelconfig.OrdererOrg)

func (*OrdererConfig) OrganizationsReturnsOnCall

func (fake *OrdererConfig) OrganizationsReturnsOnCall(i int, result1 map[string]channelconfig.OrdererOrg)

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