Package mock
import "github.com/hyperledger/fabric/orderer/common/broadcast/mock"
- Overview
- Index
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.
- type ABServer
- func (fake *ABServer) Context() context.Context
- func (fake *ABServer) ContextCallCount() int
- func (fake *ABServer) ContextReturns(result1 context.Context)
- func (fake *ABServer) ContextReturnsOnCall(i int, result1 context.Context)
- func (fake *ABServer) Invocations() map[string][][]interface{}
- func (fake *ABServer) Recv() (*common.Envelope, error)
- func (fake *ABServer) RecvCallCount() int
- func (fake *ABServer) RecvMsg(m interface{}) error
- func (fake *ABServer) RecvMsgArgsForCall(i int) interface{}
- func (fake *ABServer) RecvMsgCallCount() int
- func (fake *ABServer) RecvMsgReturns(result1 error)
- func (fake *ABServer) RecvMsgReturnsOnCall(i int, result1 error)
- func (fake *ABServer) RecvReturns(result1 *common.Envelope, result2 error)
- func (fake *ABServer) RecvReturnsOnCall(i int, result1 *common.Envelope, result2 error)
- func (fake *ABServer) Send(arg1 *orderer.BroadcastResponse) error
- func (fake *ABServer) SendArgsForCall(i int) *orderer.BroadcastResponse
- func (fake *ABServer) SendCallCount() int
- func (fake *ABServer) SendHeader(arg1 metadata.MD) error
- func (fake *ABServer) SendHeaderArgsForCall(i int) metadata.MD
- func (fake *ABServer) SendHeaderCallCount() int
- func (fake *ABServer) SendHeaderReturns(result1 error)
- func (fake *ABServer) SendHeaderReturnsOnCall(i int, result1 error)
- func (fake *ABServer) SendMsg(m interface{}) error
- func (fake *ABServer) SendMsgArgsForCall(i int) interface{}
- func (fake *ABServer) SendMsgCallCount() int
- func (fake *ABServer) SendMsgReturns(result1 error)
- func (fake *ABServer) SendMsgReturnsOnCall(i int, result1 error)
- func (fake *ABServer) SendReturns(result1 error)
- func (fake *ABServer) SendReturnsOnCall(i int, result1 error)
- func (fake *ABServer) SetHeader(arg1 metadata.MD) error
- func (fake *ABServer) SetHeaderArgsForCall(i int) metadata.MD
- func (fake *ABServer) SetHeaderCallCount() int
- func (fake *ABServer) SetHeaderReturns(result1 error)
- func (fake *ABServer) SetHeaderReturnsOnCall(i int, result1 error)
- func (fake *ABServer) SetTrailer(arg1 metadata.MD)
- func (fake *ABServer) SetTrailerArgsForCall(i int) metadata.MD
- func (fake *ABServer) SetTrailerCallCount() int
- type ChannelSupport
- func (fake *ChannelSupport) ClassifyMsg(arg1 *common.ChannelHeader) msgprocessor.Classification
- func (fake *ChannelSupport) ClassifyMsgArgsForCall(i int) *common.ChannelHeader
- func (fake *ChannelSupport) ClassifyMsgCallCount() int
- func (fake *ChannelSupport) ClassifyMsgCalls(stub func(*common.ChannelHeader) msgprocessor.Classification)
- func (fake *ChannelSupport) ClassifyMsgReturns(result1 msgprocessor.Classification)
- func (fake *ChannelSupport) ClassifyMsgReturnsOnCall(i int, result1 msgprocessor.Classification)
- func (fake *ChannelSupport) Configure(arg1 *common.Envelope, arg2 uint64) error
- func (fake *ChannelSupport) ConfigureArgsForCall(i int) (*common.Envelope, uint64)
- func (fake *ChannelSupport) ConfigureCallCount() int
- func (fake *ChannelSupport) ConfigureCalls(stub func(*common.Envelope, uint64) error)
- func (fake *ChannelSupport) ConfigureReturns(result1 error)
- func (fake *ChannelSupport) ConfigureReturnsOnCall(i int, result1 error)
- func (fake *ChannelSupport) Invocations() map[string][][]interface{}
- func (fake *ChannelSupport) Order(arg1 *common.Envelope, arg2 uint64) error
- func (fake *ChannelSupport) OrderArgsForCall(i int) (*common.Envelope, uint64)
- func (fake *ChannelSupport) OrderCallCount() int
- func (fake *ChannelSupport) OrderCalls(stub func(*common.Envelope, uint64) error)
- func (fake *ChannelSupport) OrderReturns(result1 error)
- func (fake *ChannelSupport) OrderReturnsOnCall(i int, result1 error)
- func (fake *ChannelSupport) ProcessConfigMsg(arg1 *common.Envelope) (*common.Envelope, uint64, error)
- func (fake *ChannelSupport) ProcessConfigMsgArgsForCall(i int) *common.Envelope
- func (fake *ChannelSupport) ProcessConfigMsgCallCount() int
- func (fake *ChannelSupport) ProcessConfigMsgCalls(stub func(*common.Envelope) (*common.Envelope, uint64, error))
- func (fake *ChannelSupport) ProcessConfigMsgReturns(result1 *common.Envelope, result2 uint64, result3 error)
- func (fake *ChannelSupport) ProcessConfigMsgReturnsOnCall(i int, result1 *common.Envelope, result2 uint64, result3 error)
- func (fake *ChannelSupport) ProcessConfigUpdateMsg(arg1 *common.Envelope) (*common.Envelope, uint64, error)
- func (fake *ChannelSupport) ProcessConfigUpdateMsgArgsForCall(i int) *common.Envelope
- func (fake *ChannelSupport) ProcessConfigUpdateMsgCallCount() int
- func (fake *ChannelSupport) ProcessConfigUpdateMsgCalls(stub func(*common.Envelope) (*common.Envelope, uint64, error))
- func (fake *ChannelSupport) ProcessConfigUpdateMsgReturns(result1 *common.Envelope, result2 uint64, result3 error)
- func (fake *ChannelSupport) ProcessConfigUpdateMsgReturnsOnCall(i int, result1 *common.Envelope, result2 uint64, result3 error)
- func (fake *ChannelSupport) ProcessNormalMsg(arg1 *common.Envelope) (uint64, error)
- func (fake *ChannelSupport) ProcessNormalMsgArgsForCall(i int) *common.Envelope
- func (fake *ChannelSupport) ProcessNormalMsgCallCount() int
- func (fake *ChannelSupport) ProcessNormalMsgCalls(stub func(*common.Envelope) (uint64, error))
- func (fake *ChannelSupport) ProcessNormalMsgReturns(result1 uint64, result2 error)
- func (fake *ChannelSupport) ProcessNormalMsgReturnsOnCall(i int, result1 uint64, result2 error)
- func (fake *ChannelSupport) WaitReady() error
- func (fake *ChannelSupport) WaitReadyCallCount() int
- func (fake *ChannelSupport) WaitReadyCalls(stub func() error)
- func (fake *ChannelSupport) WaitReadyReturns(result1 error)
- func (fake *ChannelSupport) WaitReadyReturnsOnCall(i int, result1 error)
- type ChannelSupportRegistrar
- func (fake *ChannelSupportRegistrar) BroadcastChannelSupport(arg1 *common.Envelope) (*common.ChannelHeader, bool, broadcast.ChannelSupport, error)
- func (fake *ChannelSupportRegistrar) BroadcastChannelSupportArgsForCall(i int) *common.Envelope
- func (fake *ChannelSupportRegistrar) BroadcastChannelSupportCallCount() int
- func (fake *ChannelSupportRegistrar) BroadcastChannelSupportCalls(stub func(*common.Envelope) (*common.ChannelHeader, bool, broadcast.ChannelSupport, error))
- func (fake *ChannelSupportRegistrar) BroadcastChannelSupportReturns(result1 *common.ChannelHeader, result2 bool, result3 broadcast.ChannelSupport, result4 error)
- func (fake *ChannelSupportRegistrar) BroadcastChannelSupportReturnsOnCall(i int, result1 *common.ChannelHeader, result2 bool, result3 broadcast.ChannelSupport, result4 error)
- func (fake *ChannelSupportRegistrar) Invocations() map[string][][]interface{}
- type MetricsCounter
- func (fake *MetricsCounter) Add(delta float64)
- func (fake *MetricsCounter) AddArgsForCall(i int) float64
- func (fake *MetricsCounter) AddCallCount() int
- func (fake *MetricsCounter) Invocations() map[string][][]interface{}
- func (fake *MetricsCounter) With(labelValues ...string) metrics.Counter
- func (fake *MetricsCounter) WithArgsForCall(i int) []string
- func (fake *MetricsCounter) WithCallCount() int
- func (fake *MetricsCounter) WithReturns(result1 metrics.Counter)
- func (fake *MetricsCounter) WithReturnsOnCall(i int, result1 metrics.Counter)
- type MetricsHistogram
- func (fake *MetricsHistogram) Invocations() map[string][][]interface{}
- func (fake *MetricsHistogram) Observe(value float64)
- func (fake *MetricsHistogram) ObserveArgsForCall(i int) float64
- func (fake *MetricsHistogram) ObserveCallCount() int
- func (fake *MetricsHistogram) With(labelValues ...string) metrics.Histogram
- func (fake *MetricsHistogram) WithArgsForCall(i int) []string
- func (fake *MetricsHistogram) WithCallCount() int
- func (fake *MetricsHistogram) WithReturns(result1 metrics.Histogram)
- func (fake *MetricsHistogram) WithReturnsOnCall(i int, result1 metrics.Histogram)
- type MetricsProvider
- func (fake *MetricsProvider) Invocations() map[string][][]interface{}
- func (fake *MetricsProvider) NewCounter(arg1 metrics.CounterOpts) metrics.Counter
- func (fake *MetricsProvider) NewCounterArgsForCall(i int) metrics.CounterOpts
- func (fake *MetricsProvider) NewCounterCallCount() int
- func (fake *MetricsProvider) NewCounterReturns(result1 metrics.Counter)
- func (fake *MetricsProvider) NewCounterReturnsOnCall(i int, result1 metrics.Counter)
- func (fake *MetricsProvider) NewGauge(arg1 metrics.GaugeOpts) metrics.Gauge
- func (fake *MetricsProvider) NewGaugeArgsForCall(i int) metrics.GaugeOpts
- func (fake *MetricsProvider) NewGaugeCallCount() int
- func (fake *MetricsProvider) NewGaugeReturns(result1 metrics.Gauge)
- func (fake *MetricsProvider) NewGaugeReturnsOnCall(i int, result1 metrics.Gauge)
- func (fake *MetricsProvider) NewHistogram(arg1 metrics.HistogramOpts) metrics.Histogram
- func (fake *MetricsProvider) NewHistogramArgsForCall(i int) metrics.HistogramOpts
- func (fake *MetricsProvider) NewHistogramCallCount() int
- func (fake *MetricsProvider) NewHistogramReturns(result1 metrics.Histogram)
- func (fake *MetricsProvider) NewHistogramReturnsOnCall(i int, result1 metrics.Histogram)
Package files
ab_server.go
channel_support.go
channel_support_registrar.go
metrics_counter.go
metrics_histogram.go
metrics_provider.go
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
}
func (*ABServer) Context
¶
func (fake *ABServer) Context() context.Context
func (fake *ABServer) ContextCallCount() int
func (fake *ABServer) ContextReturns(result1 context.Context)
func (fake *ABServer) ContextReturnsOnCall(i int, result1 context.Context)
func (fake *ABServer) Invocations() map[string][][]interface{}
func (*ABServer) Recv
¶
func (fake *ABServer) Recv() (*common.Envelope, error)
func (fake *ABServer) RecvCallCount() int
func (*ABServer) RecvMsg
¶
func (fake *ABServer) RecvMsg(m interface{}) error
func (fake *ABServer) RecvMsgArgsForCall(i int) interface{}
func (fake *ABServer) RecvMsgCallCount() int
func (fake *ABServer) RecvMsgReturns(result1 error)
func (fake *ABServer) RecvMsgReturnsOnCall(i int, result1 error)
func (fake *ABServer) RecvReturns(result1 *common.Envelope, result2 error)
func (fake *ABServer) RecvReturnsOnCall(i int, result1 *common.Envelope, result2 error)
func (*ABServer) Send
¶
func (fake *ABServer) Send(arg1 *orderer.BroadcastResponse) error
func (fake *ABServer) SendArgsForCall(i int) *orderer.BroadcastResponse
func (fake *ABServer) SendCallCount() int
func (fake *ABServer) SendHeader(arg1 metadata.MD) error
func (fake *ABServer) SendHeaderArgsForCall(i int) metadata.MD
func (fake *ABServer) SendHeaderCallCount() int
func (fake *ABServer) SendHeaderReturns(result1 error)
func (fake *ABServer) SendHeaderReturnsOnCall(i int, result1 error)
func (*ABServer) SendMsg
¶
func (fake *ABServer) SendMsg(m interface{}) error
func (fake *ABServer) SendMsgArgsForCall(i int) interface{}
func (fake *ABServer) SendMsgCallCount() int
func (fake *ABServer) SendMsgReturns(result1 error)
func (fake *ABServer) SendMsgReturnsOnCall(i int, result1 error)
func (fake *ABServer) SendReturns(result1 error)
func (fake *ABServer) SendReturnsOnCall(i int, result1 error)
func (fake *ABServer) SetHeader(arg1 metadata.MD) error
func (fake *ABServer) SetHeaderArgsForCall(i int) metadata.MD
func (fake *ABServer) SetHeaderCallCount() int
func (fake *ABServer) SetHeaderReturns(result1 error)
func (fake *ABServer) SetHeaderReturnsOnCall(i int, result1 error)
func (fake *ABServer) SetTrailer(arg1 metadata.MD)
func (fake *ABServer) SetTrailerArgsForCall(i int) metadata.MD
func (fake *ABServer) SetTrailerCallCount() int
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
}
func (fake *ChannelSupport) ClassifyMsg(arg1 *common.ChannelHeader) msgprocessor.Classification
func (fake *ChannelSupport) ClassifyMsgArgsForCall(i int) *common.ChannelHeader
func (fake *ChannelSupport) ClassifyMsgCallCount() int
func (fake *ChannelSupport) ClassifyMsgCalls(stub func(*common.ChannelHeader) msgprocessor.Classification)
func (fake *ChannelSupport) ClassifyMsgReturns(result1 msgprocessor.Classification)
func (fake *ChannelSupport) ClassifyMsgReturnsOnCall(i int, result1 msgprocessor.Classification)
func (fake *ChannelSupport) Configure(arg1 *common.Envelope, arg2 uint64) error
func (fake *ChannelSupport) ConfigureArgsForCall(i int) (*common.Envelope, uint64)
func (fake *ChannelSupport) ConfigureCallCount() int
func (fake *ChannelSupport) ConfigureCalls(stub func(*common.Envelope, uint64) error)
func (fake *ChannelSupport) ConfigureReturns(result1 error)
func (fake *ChannelSupport) ConfigureReturnsOnCall(i int, result1 error)
func (fake *ChannelSupport) Invocations() map[string][][]interface{}
func (*ChannelSupport) Order
¶
func (fake *ChannelSupport) Order(arg1 *common.Envelope, arg2 uint64) error
func (fake *ChannelSupport) OrderArgsForCall(i int) (*common.Envelope, uint64)
func (fake *ChannelSupport) OrderCallCount() int
func (*ChannelSupport) OrderCalls
¶
func (fake *ChannelSupport) OrderCalls(stub func(*common.Envelope, uint64) error)
func (fake *ChannelSupport) OrderReturns(result1 error)
func (fake *ChannelSupport) OrderReturnsOnCall(i int, result1 error)
func (fake *ChannelSupport) ProcessConfigMsg(arg1 *common.Envelope) (*common.Envelope, uint64, error)
func (fake *ChannelSupport) ProcessConfigMsgArgsForCall(i int) *common.Envelope
func (fake *ChannelSupport) ProcessConfigMsgCallCount() int
func (fake *ChannelSupport) ProcessConfigMsgCalls(stub func(*common.Envelope) (*common.Envelope, uint64, error))
func (fake *ChannelSupport) ProcessConfigMsgReturns(result1 *common.Envelope, result2 uint64, result3 error)
func (fake *ChannelSupport) ProcessConfigMsgReturnsOnCall(i int, result1 *common.Envelope, result2 uint64, result3 error)
func (fake *ChannelSupport) ProcessConfigUpdateMsg(arg1 *common.Envelope) (*common.Envelope, uint64, error)
func (fake *ChannelSupport) ProcessConfigUpdateMsgArgsForCall(i int) *common.Envelope
func (fake *ChannelSupport) ProcessConfigUpdateMsgCallCount() int
func (fake *ChannelSupport) ProcessConfigUpdateMsgCalls(stub func(*common.Envelope) (*common.Envelope, uint64, error))
func (fake *ChannelSupport) ProcessConfigUpdateMsgReturns(result1 *common.Envelope, result2 uint64, result3 error)
func (fake *ChannelSupport) ProcessConfigUpdateMsgReturnsOnCall(i int, result1 *common.Envelope, result2 uint64, result3 error)
func (fake *ChannelSupport) ProcessNormalMsg(arg1 *common.Envelope) (uint64, error)
func (fake *ChannelSupport) ProcessNormalMsgArgsForCall(i int) *common.Envelope
func (fake *ChannelSupport) ProcessNormalMsgCallCount() int
func (fake *ChannelSupport) ProcessNormalMsgCalls(stub func(*common.Envelope) (uint64, error))
func (fake *ChannelSupport) ProcessNormalMsgReturns(result1 uint64, result2 error)
func (fake *ChannelSupport) ProcessNormalMsgReturnsOnCall(i int, result1 uint64, result2 error)
func (*ChannelSupport) WaitReady
¶
func (fake *ChannelSupport) WaitReady() error
func (fake *ChannelSupport) WaitReadyCallCount() int
func (fake *ChannelSupport) WaitReadyCalls(stub func() error)
func (fake *ChannelSupport) WaitReadyReturns(result1 error)
func (fake *ChannelSupport) WaitReadyReturnsOnCall(i int, result1 error)
type ChannelSupportRegistrar struct {
BroadcastChannelSupportStub func(*common.Envelope) (*common.ChannelHeader, bool, broadcast.ChannelSupport, error)
}
func (fake *ChannelSupportRegistrar) BroadcastChannelSupport(arg1 *common.Envelope) (*common.ChannelHeader, bool, broadcast.ChannelSupport, error)
func (fake *ChannelSupportRegistrar) BroadcastChannelSupportArgsForCall(i int) *common.Envelope
func (fake *ChannelSupportRegistrar) BroadcastChannelSupportCallCount() int
func (fake *ChannelSupportRegistrar) BroadcastChannelSupportCalls(stub func(*common.Envelope) (*common.ChannelHeader, bool, broadcast.ChannelSupport, error))
func (fake *ChannelSupportRegistrar) BroadcastChannelSupportReturns(result1 *common.ChannelHeader, result2 bool, result3 broadcast.ChannelSupport, result4 error)
func (fake *ChannelSupportRegistrar) BroadcastChannelSupportReturnsOnCall(i int, result1 *common.ChannelHeader, result2 bool, result3 broadcast.ChannelSupport, result4 error)
func (*ChannelSupportRegistrar) Invocations
¶
func (fake *ChannelSupportRegistrar) Invocations() map[string][][]interface{}
type MetricsCounter struct {
WithStub func(labelValues ...string) metrics.Counter
AddStub func(delta float64)
}
func (*MetricsCounter) Add
¶
func (fake *MetricsCounter) Add(delta float64)
func (fake *MetricsCounter) AddArgsForCall(i int) float64
func (fake *MetricsCounter) AddCallCount() int
func (fake *MetricsCounter) Invocations() map[string][][]interface{}
func (*MetricsCounter) With
¶
func (fake *MetricsCounter) With(labelValues ...string) metrics.Counter
func (fake *MetricsCounter) WithArgsForCall(i int) []string
func (fake *MetricsCounter) WithCallCount() int
func (fake *MetricsCounter) WithReturns(result1 metrics.Counter)
func (fake *MetricsCounter) WithReturnsOnCall(i int, result1 metrics.Counter)
type MetricsHistogram struct {
WithStub func(labelValues ...string) metrics.Histogram
ObserveStub func(value float64)
}
func (*MetricsHistogram) Invocations
¶
func (fake *MetricsHistogram) Invocations() map[string][][]interface{}
func (*MetricsHistogram) Observe
¶
func (fake *MetricsHistogram) Observe(value float64)
func (fake *MetricsHistogram) ObserveArgsForCall(i int) float64
func (fake *MetricsHistogram) ObserveCallCount() int
func (*MetricsHistogram) With
¶
func (fake *MetricsHistogram) With(labelValues ...string) metrics.Histogram
func (fake *MetricsHistogram) WithArgsForCall(i int) []string
func (fake *MetricsHistogram) WithCallCount() int
func (*MetricsHistogram) WithReturns
¶
func (fake *MetricsHistogram) WithReturns(result1 metrics.Histogram)
func (fake *MetricsHistogram) WithReturnsOnCall(i int, result1 metrics.Histogram)
type MetricsProvider struct {
NewCounterStub func(metrics.CounterOpts) metrics.Counter
NewGaugeStub func(metrics.GaugeOpts) metrics.Gauge
NewHistogramStub func(metrics.HistogramOpts) metrics.Histogram
}
func (*MetricsProvider) Invocations
¶
func (fake *MetricsProvider) Invocations() map[string][][]interface{}
func (*MetricsProvider) NewCounter
¶
func (fake *MetricsProvider) NewCounter(arg1 metrics.CounterOpts) metrics.Counter
func (fake *MetricsProvider) NewCounterArgsForCall(i int) metrics.CounterOpts
func (fake *MetricsProvider) NewCounterCallCount() int
func (fake *MetricsProvider) NewCounterReturns(result1 metrics.Counter)
func (fake *MetricsProvider) NewCounterReturnsOnCall(i int, result1 metrics.Counter)
func (*MetricsProvider) NewGauge
¶
func (fake *MetricsProvider) NewGauge(arg1 metrics.GaugeOpts) metrics.Gauge
func (fake *MetricsProvider) NewGaugeArgsForCall(i int) metrics.GaugeOpts
func (fake *MetricsProvider) NewGaugeCallCount() int
func (fake *MetricsProvider) NewGaugeReturns(result1 metrics.Gauge)
func (fake *MetricsProvider) NewGaugeReturnsOnCall(i int, result1 metrics.Gauge)
func (fake *MetricsProvider) NewHistogram(arg1 metrics.HistogramOpts) metrics.Histogram
func (fake *MetricsProvider) NewHistogramArgsForCall(i int) metrics.HistogramOpts
func (fake *MetricsProvider) NewHistogramCallCount() int
func (fake *MetricsProvider) NewHistogramReturns(result1 metrics.Histogram)
func (fake *MetricsProvider) NewHistogramReturnsOnCall(i int, result1 metrics.Histogram)