fabric: github.com/hyperledger/fabric/orderer/common/blockcutter/mock Index | Files

package mock

import "github.com/hyperledger/fabric/orderer/common/blockcutter/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.

Index

Package Files

config_fetcher.go metrics_histogram.go metrics_provider.go orderer_config.go

type MetricsHistogram Uses

type MetricsHistogram struct {
    ObserveStub func(float64)

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

func (*MetricsHistogram) Invocations Uses

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

func (*MetricsHistogram) Observe Uses

func (fake *MetricsHistogram) Observe(arg1 float64)

func (*MetricsHistogram) ObserveArgsForCall Uses

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

func (*MetricsHistogram) ObserveCallCount Uses

func (fake *MetricsHistogram) ObserveCallCount() int

func (*MetricsHistogram) ObserveCalls Uses

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

func (*MetricsHistogram) With Uses

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

func (*MetricsHistogram) WithArgsForCall Uses

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

func (*MetricsHistogram) WithCallCount Uses

func (fake *MetricsHistogram) WithCallCount() int

func (*MetricsHistogram) WithCalls Uses

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

func (*MetricsHistogram) WithReturns Uses

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

func (*MetricsHistogram) WithReturnsOnCall Uses

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

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

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

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

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

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

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

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 OrdererConfig Uses

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 Uses

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

func (*OrdererConfig) BatchSizeCallCount Uses

func (fake *OrdererConfig) BatchSizeCallCount() int

func (*OrdererConfig) BatchSizeCalls Uses

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

func (*OrdererConfig) BatchSizeReturns Uses

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

func (*OrdererConfig) BatchSizeReturnsOnCall Uses

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

func (*OrdererConfig) BatchTimeout Uses

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

func (*OrdererConfig) BatchTimeoutCallCount Uses

func (fake *OrdererConfig) BatchTimeoutCallCount() int

func (*OrdererConfig) BatchTimeoutCalls Uses

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

func (*OrdererConfig) BatchTimeoutReturns Uses

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

func (*OrdererConfig) BatchTimeoutReturnsOnCall Uses

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

func (*OrdererConfig) Capabilities Uses

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

func (*OrdererConfig) CapabilitiesCallCount Uses

func (fake *OrdererConfig) CapabilitiesCallCount() int

func (*OrdererConfig) CapabilitiesCalls Uses

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

func (*OrdererConfig) CapabilitiesReturns Uses

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

func (*OrdererConfig) CapabilitiesReturnsOnCall Uses

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

func (*OrdererConfig) ConsensusMetadata Uses

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

func (*OrdererConfig) ConsensusMetadataCallCount Uses

func (fake *OrdererConfig) ConsensusMetadataCallCount() int

func (*OrdererConfig) ConsensusMetadataCalls Uses

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

func (*OrdererConfig) ConsensusMetadataReturns Uses

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

func (*OrdererConfig) ConsensusMetadataReturnsOnCall Uses

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

func (*OrdererConfig) ConsensusState Uses

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

func (*OrdererConfig) ConsensusStateCallCount Uses

func (fake *OrdererConfig) ConsensusStateCallCount() int

func (*OrdererConfig) ConsensusStateCalls Uses

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

func (*OrdererConfig) ConsensusStateReturns Uses

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

func (*OrdererConfig) ConsensusStateReturnsOnCall Uses

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

func (*OrdererConfig) ConsensusType Uses

func (fake *OrdererConfig) ConsensusType() string

func (*OrdererConfig) ConsensusTypeCallCount Uses

func (fake *OrdererConfig) ConsensusTypeCallCount() int

func (*OrdererConfig) ConsensusTypeCalls Uses

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

func (*OrdererConfig) ConsensusTypeReturns Uses

func (fake *OrdererConfig) ConsensusTypeReturns(result1 string)

func (*OrdererConfig) ConsensusTypeReturnsOnCall Uses

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

func (*OrdererConfig) Invocations Uses

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

func (*OrdererConfig) KafkaBrokers Uses

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

func (*OrdererConfig) KafkaBrokersCallCount Uses

func (fake *OrdererConfig) KafkaBrokersCallCount() int

func (*OrdererConfig) KafkaBrokersCalls Uses

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

func (*OrdererConfig) KafkaBrokersReturns Uses

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

func (*OrdererConfig) KafkaBrokersReturnsOnCall Uses

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

func (*OrdererConfig) MaxChannelsCount Uses

func (fake *OrdererConfig) MaxChannelsCount() uint64

func (*OrdererConfig) MaxChannelsCountCallCount Uses

func (fake *OrdererConfig) MaxChannelsCountCallCount() int

func (*OrdererConfig) MaxChannelsCountCalls Uses

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

func (*OrdererConfig) MaxChannelsCountReturns Uses

func (fake *OrdererConfig) MaxChannelsCountReturns(result1 uint64)

func (*OrdererConfig) MaxChannelsCountReturnsOnCall Uses

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

func (*OrdererConfig) Organizations Uses

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

func (*OrdererConfig) OrganizationsCallCount Uses

func (fake *OrdererConfig) OrganizationsCallCount() int

func (*OrdererConfig) OrganizationsCalls Uses

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

func (*OrdererConfig) OrganizationsReturns Uses

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

func (*OrdererConfig) OrganizationsReturnsOnCall Uses

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

type OrdererConfigFetcher Uses

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

func (*OrdererConfigFetcher) Invocations Uses

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

func (*OrdererConfigFetcher) OrdererConfig Uses

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

func (*OrdererConfigFetcher) OrdererConfigCallCount Uses

func (fake *OrdererConfigFetcher) OrdererConfigCallCount() int

func (*OrdererConfigFetcher) OrdererConfigCalls Uses

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

func (*OrdererConfigFetcher) OrdererConfigReturns Uses

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

func (*OrdererConfigFetcher) OrdererConfigReturnsOnCall Uses

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

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