mock

package
v1.4.10 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2021 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.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MetricsHistogram added in v1.4.1

type MetricsHistogram struct {
	ObserveStub func(float64)

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

func (*MetricsHistogram) Invocations added in v1.4.1

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

func (*MetricsHistogram) Observe added in v1.4.1

func (fake *MetricsHistogram) Observe(arg1 float64)

func (*MetricsHistogram) ObserveArgsForCall added in v1.4.1

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

func (*MetricsHistogram) ObserveCallCount added in v1.4.1

func (fake *MetricsHistogram) ObserveCallCount() int

func (*MetricsHistogram) ObserveCalls added in v1.4.1

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

func (*MetricsHistogram) With added in v1.4.1

func (fake *MetricsHistogram) With(arg1 ...string) metrics.Histogram

func (*MetricsHistogram) WithArgsForCall added in v1.4.1

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

func (*MetricsHistogram) WithCallCount added in v1.4.1

func (fake *MetricsHistogram) WithCallCount() int

func (*MetricsHistogram) WithCalls added in v1.4.1

func (fake *MetricsHistogram) WithCalls(stub func(...string) metrics.Histogram)

func (*MetricsHistogram) WithReturns added in v1.4.1

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

func (*MetricsHistogram) WithReturnsOnCall added in v1.4.1

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

type MetricsProvider added in v1.4.1

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 added in v1.4.1

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

func (*MetricsProvider) NewCounter added in v1.4.1

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

func (*MetricsProvider) NewCounterArgsForCall added in v1.4.1

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

func (*MetricsProvider) NewCounterCallCount added in v1.4.1

func (fake *MetricsProvider) NewCounterCallCount() int

func (*MetricsProvider) NewCounterCalls added in v1.4.1

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

func (*MetricsProvider) NewCounterReturns added in v1.4.1

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

func (*MetricsProvider) NewCounterReturnsOnCall added in v1.4.1

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

func (*MetricsProvider) NewGauge added in v1.4.1

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

func (*MetricsProvider) NewGaugeArgsForCall added in v1.4.1

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

func (*MetricsProvider) NewGaugeCallCount added in v1.4.1

func (fake *MetricsProvider) NewGaugeCallCount() int

func (*MetricsProvider) NewGaugeCalls added in v1.4.1

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

func (*MetricsProvider) NewGaugeReturns added in v1.4.1

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

func (*MetricsProvider) NewGaugeReturnsOnCall added in v1.4.1

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

func (*MetricsProvider) NewHistogram added in v1.4.1

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

func (*MetricsProvider) NewHistogramArgsForCall added in v1.4.1

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

func (*MetricsProvider) NewHistogramCallCount added in v1.4.1

func (fake *MetricsProvider) NewHistogramCallCount() int

func (*MetricsProvider) NewHistogramCalls added in v1.4.1

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

func (*MetricsProvider) NewHistogramReturns added in v1.4.1

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

func (*MetricsProvider) NewHistogramReturnsOnCall added in v1.4.1

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

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 added in v1.4.1

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 added in v1.4.1

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 added in v1.4.1

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 added in v1.3.0

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

func (*OrdererConfig) ConsensusMetadataCallCount added in v1.3.0

func (fake *OrdererConfig) ConsensusMetadataCallCount() int

func (*OrdererConfig) ConsensusMetadataCalls added in v1.4.1

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

func (*OrdererConfig) ConsensusMetadataReturns added in v1.3.0

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

func (*OrdererConfig) ConsensusMetadataReturnsOnCall added in v1.3.0

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

func (*OrdererConfig) ConsensusState added in v1.4.2

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

func (*OrdererConfig) ConsensusStateCallCount added in v1.4.2

func (fake *OrdererConfig) ConsensusStateCallCount() int

func (*OrdererConfig) ConsensusStateCalls added in v1.4.2

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

func (*OrdererConfig) ConsensusStateReturns added in v1.4.2

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

func (*OrdererConfig) ConsensusStateReturnsOnCall added in v1.4.2

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 added in v1.4.1

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 added in v1.4.1

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 added in v1.4.1

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 added in v1.4.1

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 OrdererConfigFetcher

type OrdererConfigFetcher struct {
	OrdererConfigStub func() (channelconfig.Orderer, bool)
	// contains filtered or unexported fields
}

func (*OrdererConfigFetcher) Invocations

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

func (*OrdererConfigFetcher) OrdererConfig

func (fake *OrdererConfigFetcher) OrdererConfig() (channelconfig.Orderer, bool)

func (*OrdererConfigFetcher) OrdererConfigCallCount

func (fake *OrdererConfigFetcher) OrdererConfigCallCount() int

func (*OrdererConfigFetcher) OrdererConfigCalls added in v1.4.1

func (fake *OrdererConfigFetcher) OrdererConfigCalls(stub func() (channelconfig.Orderer, bool))

func (*OrdererConfigFetcher) OrdererConfigReturns

func (fake *OrdererConfigFetcher) OrdererConfigReturns(result1 channelconfig.Orderer, result2 bool)

func (*OrdererConfigFetcher) OrdererConfigReturnsOnCall

func (fake *OrdererConfigFetcher) OrdererConfigReturnsOnCall(i int, result1 channelconfig.Orderer, result2 bool)

Jump to

Keyboard shortcuts

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