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

package mock

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

Index

Package Files

ab_server.go channel_support.go channel_support_registrar.go metrics_counter.go metrics_histogram.go metrics_provider.go

type ABServer Uses

type ABServer struct {
    SendStub func(*orderer.BroadcastResponse) error

    RecvStub func() (*common.Envelope, error)

    SetHeaderStub func(metadata.MD) error

    SendHeaderStub func(metadata.MD) error

    SetTrailerStub func(metadata.MD)

    ContextStub func() context.Context

    SendMsgStub func(m interface{}) error

    RecvMsgStub func(m interface{}) error
    // contains filtered or unexported fields
}

func (*ABServer) Context Uses

func (fake *ABServer) Context() context.Context

func (*ABServer) ContextCallCount Uses

func (fake *ABServer) ContextCallCount() int

func (*ABServer) ContextReturns Uses

func (fake *ABServer) ContextReturns(result1 context.Context)

func (*ABServer) ContextReturnsOnCall Uses

func (fake *ABServer) ContextReturnsOnCall(i int, result1 context.Context)

func (*ABServer) Invocations Uses

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

func (*ABServer) Recv Uses

func (fake *ABServer) Recv() (*common.Envelope, error)

func (*ABServer) RecvCallCount Uses

func (fake *ABServer) RecvCallCount() int

func (*ABServer) RecvMsg Uses

func (fake *ABServer) RecvMsg(m interface{}) error

func (*ABServer) RecvMsgArgsForCall Uses

func (fake *ABServer) RecvMsgArgsForCall(i int) interface{}

func (*ABServer) RecvMsgCallCount Uses

func (fake *ABServer) RecvMsgCallCount() int

func (*ABServer) RecvMsgReturns Uses

func (fake *ABServer) RecvMsgReturns(result1 error)

func (*ABServer) RecvMsgReturnsOnCall Uses

func (fake *ABServer) RecvMsgReturnsOnCall(i int, result1 error)

func (*ABServer) RecvReturns Uses

func (fake *ABServer) RecvReturns(result1 *common.Envelope, result2 error)

func (*ABServer) RecvReturnsOnCall Uses

func (fake *ABServer) RecvReturnsOnCall(i int, result1 *common.Envelope, result2 error)

func (*ABServer) Send Uses

func (fake *ABServer) Send(arg1 *orderer.BroadcastResponse) error

func (*ABServer) SendArgsForCall Uses

func (fake *ABServer) SendArgsForCall(i int) *orderer.BroadcastResponse

func (*ABServer) SendCallCount Uses

func (fake *ABServer) SendCallCount() int

func (*ABServer) SendHeader Uses

func (fake *ABServer) SendHeader(arg1 metadata.MD) error

func (*ABServer) SendHeaderArgsForCall Uses

func (fake *ABServer) SendHeaderArgsForCall(i int) metadata.MD

func (*ABServer) SendHeaderCallCount Uses

func (fake *ABServer) SendHeaderCallCount() int

func (*ABServer) SendHeaderReturns Uses

func (fake *ABServer) SendHeaderReturns(result1 error)

func (*ABServer) SendHeaderReturnsOnCall Uses

func (fake *ABServer) SendHeaderReturnsOnCall(i int, result1 error)

func (*ABServer) SendMsg Uses

func (fake *ABServer) SendMsg(m interface{}) error

func (*ABServer) SendMsgArgsForCall Uses

func (fake *ABServer) SendMsgArgsForCall(i int) interface{}

func (*ABServer) SendMsgCallCount Uses

func (fake *ABServer) SendMsgCallCount() int

func (*ABServer) SendMsgReturns Uses

func (fake *ABServer) SendMsgReturns(result1 error)

func (*ABServer) SendMsgReturnsOnCall Uses

func (fake *ABServer) SendMsgReturnsOnCall(i int, result1 error)

func (*ABServer) SendReturns Uses

func (fake *ABServer) SendReturns(result1 error)

func (*ABServer) SendReturnsOnCall Uses

func (fake *ABServer) SendReturnsOnCall(i int, result1 error)

func (*ABServer) SetHeader Uses

func (fake *ABServer) SetHeader(arg1 metadata.MD) error

func (*ABServer) SetHeaderArgsForCall Uses

func (fake *ABServer) SetHeaderArgsForCall(i int) metadata.MD

func (*ABServer) SetHeaderCallCount Uses

func (fake *ABServer) SetHeaderCallCount() int

func (*ABServer) SetHeaderReturns Uses

func (fake *ABServer) SetHeaderReturns(result1 error)

func (*ABServer) SetHeaderReturnsOnCall Uses

func (fake *ABServer) SetHeaderReturnsOnCall(i int, result1 error)

func (*ABServer) SetTrailer Uses

func (fake *ABServer) SetTrailer(arg1 metadata.MD)

func (*ABServer) SetTrailerArgsForCall Uses

func (fake *ABServer) SetTrailerArgsForCall(i int) metadata.MD

func (*ABServer) SetTrailerCallCount Uses

func (fake *ABServer) SetTrailerCallCount() int

type ChannelSupport Uses

type ChannelSupport struct {
    ClassifyMsgStub func(*common.ChannelHeader) msgprocessor.Classification

    ConfigureStub func(*common.Envelope, uint64) error

    OrderStub func(*common.Envelope, uint64) error

    ProcessConfigMsgStub func(*common.Envelope) (*common.Envelope, uint64, error)

    ProcessConfigUpdateMsgStub func(*common.Envelope) (*common.Envelope, uint64, error)

    ProcessNormalMsgStub func(*common.Envelope) (uint64, error)

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

func (*ChannelSupport) ClassifyMsg Uses

func (fake *ChannelSupport) ClassifyMsg(arg1 *common.ChannelHeader) msgprocessor.Classification

func (*ChannelSupport) ClassifyMsgArgsForCall Uses

func (fake *ChannelSupport) ClassifyMsgArgsForCall(i int) *common.ChannelHeader

func (*ChannelSupport) ClassifyMsgCallCount Uses

func (fake *ChannelSupport) ClassifyMsgCallCount() int

func (*ChannelSupport) ClassifyMsgCalls Uses

func (fake *ChannelSupport) ClassifyMsgCalls(stub func(*common.ChannelHeader) msgprocessor.Classification)

func (*ChannelSupport) ClassifyMsgReturns Uses

func (fake *ChannelSupport) ClassifyMsgReturns(result1 msgprocessor.Classification)

func (*ChannelSupport) ClassifyMsgReturnsOnCall Uses

func (fake *ChannelSupport) ClassifyMsgReturnsOnCall(i int, result1 msgprocessor.Classification)

func (*ChannelSupport) Configure Uses

func (fake *ChannelSupport) Configure(arg1 *common.Envelope, arg2 uint64) error

func (*ChannelSupport) ConfigureArgsForCall Uses

func (fake *ChannelSupport) ConfigureArgsForCall(i int) (*common.Envelope, uint64)

func (*ChannelSupport) ConfigureCallCount Uses

func (fake *ChannelSupport) ConfigureCallCount() int

func (*ChannelSupport) ConfigureCalls Uses

func (fake *ChannelSupport) ConfigureCalls(stub func(*common.Envelope, uint64) error)

func (*ChannelSupport) ConfigureReturns Uses

func (fake *ChannelSupport) ConfigureReturns(result1 error)

func (*ChannelSupport) ConfigureReturnsOnCall Uses

func (fake *ChannelSupport) ConfigureReturnsOnCall(i int, result1 error)

func (*ChannelSupport) Invocations Uses

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

func (*ChannelSupport) Order Uses

func (fake *ChannelSupport) Order(arg1 *common.Envelope, arg2 uint64) error

func (*ChannelSupport) OrderArgsForCall Uses

func (fake *ChannelSupport) OrderArgsForCall(i int) (*common.Envelope, uint64)

func (*ChannelSupport) OrderCallCount Uses

func (fake *ChannelSupport) OrderCallCount() int

func (*ChannelSupport) OrderCalls Uses

func (fake *ChannelSupport) OrderCalls(stub func(*common.Envelope, uint64) error)

func (*ChannelSupport) OrderReturns Uses

func (fake *ChannelSupport) OrderReturns(result1 error)

func (*ChannelSupport) OrderReturnsOnCall Uses

func (fake *ChannelSupport) OrderReturnsOnCall(i int, result1 error)

func (*ChannelSupport) ProcessConfigMsg Uses

func (fake *ChannelSupport) ProcessConfigMsg(arg1 *common.Envelope) (*common.Envelope, uint64, error)

func (*ChannelSupport) ProcessConfigMsgArgsForCall Uses

func (fake *ChannelSupport) ProcessConfigMsgArgsForCall(i int) *common.Envelope

func (*ChannelSupport) ProcessConfigMsgCallCount Uses

func (fake *ChannelSupport) ProcessConfigMsgCallCount() int

func (*ChannelSupport) ProcessConfigMsgCalls Uses

func (fake *ChannelSupport) ProcessConfigMsgCalls(stub func(*common.Envelope) (*common.Envelope, uint64, error))

func (*ChannelSupport) ProcessConfigMsgReturns Uses

func (fake *ChannelSupport) ProcessConfigMsgReturns(result1 *common.Envelope, result2 uint64, result3 error)

func (*ChannelSupport) ProcessConfigMsgReturnsOnCall Uses

func (fake *ChannelSupport) ProcessConfigMsgReturnsOnCall(i int, result1 *common.Envelope, result2 uint64, result3 error)

func (*ChannelSupport) ProcessConfigUpdateMsg Uses

func (fake *ChannelSupport) ProcessConfigUpdateMsg(arg1 *common.Envelope) (*common.Envelope, uint64, error)

func (*ChannelSupport) ProcessConfigUpdateMsgArgsForCall Uses

func (fake *ChannelSupport) ProcessConfigUpdateMsgArgsForCall(i int) *common.Envelope

func (*ChannelSupport) ProcessConfigUpdateMsgCallCount Uses

func (fake *ChannelSupport) ProcessConfigUpdateMsgCallCount() int

func (*ChannelSupport) ProcessConfigUpdateMsgCalls Uses

func (fake *ChannelSupport) ProcessConfigUpdateMsgCalls(stub func(*common.Envelope) (*common.Envelope, uint64, error))

func (*ChannelSupport) ProcessConfigUpdateMsgReturns Uses

func (fake *ChannelSupport) ProcessConfigUpdateMsgReturns(result1 *common.Envelope, result2 uint64, result3 error)

func (*ChannelSupport) ProcessConfigUpdateMsgReturnsOnCall Uses

func (fake *ChannelSupport) ProcessConfigUpdateMsgReturnsOnCall(i int, result1 *common.Envelope, result2 uint64, result3 error)

func (*ChannelSupport) ProcessNormalMsg Uses

func (fake *ChannelSupport) ProcessNormalMsg(arg1 *common.Envelope) (uint64, error)

func (*ChannelSupport) ProcessNormalMsgArgsForCall Uses

func (fake *ChannelSupport) ProcessNormalMsgArgsForCall(i int) *common.Envelope

func (*ChannelSupport) ProcessNormalMsgCallCount Uses

func (fake *ChannelSupport) ProcessNormalMsgCallCount() int

func (*ChannelSupport) ProcessNormalMsgCalls Uses

func (fake *ChannelSupport) ProcessNormalMsgCalls(stub func(*common.Envelope) (uint64, error))

func (*ChannelSupport) ProcessNormalMsgReturns Uses

func (fake *ChannelSupport) ProcessNormalMsgReturns(result1 uint64, result2 error)

func (*ChannelSupport) ProcessNormalMsgReturnsOnCall Uses

func (fake *ChannelSupport) ProcessNormalMsgReturnsOnCall(i int, result1 uint64, result2 error)

func (*ChannelSupport) WaitReady Uses

func (fake *ChannelSupport) WaitReady() error

func (*ChannelSupport) WaitReadyCallCount Uses

func (fake *ChannelSupport) WaitReadyCallCount() int

func (*ChannelSupport) WaitReadyCalls Uses

func (fake *ChannelSupport) WaitReadyCalls(stub func() error)

func (*ChannelSupport) WaitReadyReturns Uses

func (fake *ChannelSupport) WaitReadyReturns(result1 error)

func (*ChannelSupport) WaitReadyReturnsOnCall Uses

func (fake *ChannelSupport) WaitReadyReturnsOnCall(i int, result1 error)

type ChannelSupportRegistrar Uses

type ChannelSupportRegistrar struct {
    BroadcastChannelSupportStub func(*common.Envelope) (*common.ChannelHeader, bool, broadcast.ChannelSupport, error)
    // contains filtered or unexported fields
}

func (*ChannelSupportRegistrar) BroadcastChannelSupport Uses

func (fake *ChannelSupportRegistrar) BroadcastChannelSupport(arg1 *common.Envelope) (*common.ChannelHeader, bool, broadcast.ChannelSupport, error)

func (*ChannelSupportRegistrar) BroadcastChannelSupportArgsForCall Uses

func (fake *ChannelSupportRegistrar) BroadcastChannelSupportArgsForCall(i int) *common.Envelope

func (*ChannelSupportRegistrar) BroadcastChannelSupportCallCount Uses

func (fake *ChannelSupportRegistrar) BroadcastChannelSupportCallCount() int

func (*ChannelSupportRegistrar) BroadcastChannelSupportCalls Uses

func (fake *ChannelSupportRegistrar) BroadcastChannelSupportCalls(stub func(*common.Envelope) (*common.ChannelHeader, bool, broadcast.ChannelSupport, error))

func (*ChannelSupportRegistrar) BroadcastChannelSupportReturns Uses

func (fake *ChannelSupportRegistrar) BroadcastChannelSupportReturns(result1 *common.ChannelHeader, result2 bool, result3 broadcast.ChannelSupport, result4 error)

func (*ChannelSupportRegistrar) BroadcastChannelSupportReturnsOnCall Uses

func (fake *ChannelSupportRegistrar) BroadcastChannelSupportReturnsOnCall(i int, result1 *common.ChannelHeader, result2 bool, result3 broadcast.ChannelSupport, result4 error)

func (*ChannelSupportRegistrar) Invocations Uses

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

type MetricsCounter Uses

type MetricsCounter struct {
    WithStub func(labelValues ...string) metrics.Counter

    AddStub func(delta float64)
    // contains filtered or unexported fields
}

func (*MetricsCounter) Add Uses

func (fake *MetricsCounter) Add(delta float64)

func (*MetricsCounter) AddArgsForCall Uses

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

func (*MetricsCounter) AddCallCount Uses

func (fake *MetricsCounter) AddCallCount() int

func (*MetricsCounter) Invocations Uses

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

func (*MetricsCounter) With Uses

func (fake *MetricsCounter) With(labelValues ...string) metrics.Counter

func (*MetricsCounter) WithArgsForCall Uses

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

func (*MetricsCounter) WithCallCount Uses

func (fake *MetricsCounter) WithCallCount() int

func (*MetricsCounter) WithReturns Uses

func (fake *MetricsCounter) WithReturns(result1 metrics.Counter)

func (*MetricsCounter) WithReturnsOnCall Uses

func (fake *MetricsCounter) WithReturnsOnCall(i int, result1 metrics.Counter)

type MetricsHistogram Uses

type MetricsHistogram struct {
    WithStub func(labelValues ...string) metrics.Histogram

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

func (*MetricsHistogram) Invocations Uses

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

func (*MetricsHistogram) Observe Uses

func (fake *MetricsHistogram) Observe(value float64)

func (*MetricsHistogram) ObserveArgsForCall Uses

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

func (*MetricsHistogram) ObserveCallCount Uses

func (fake *MetricsHistogram) ObserveCallCount() int

func (*MetricsHistogram) With Uses

func (fake *MetricsHistogram) With(labelValues ...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) 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) 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)

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