fabric: github.com/hyperledger/fabric/orderer/consensus/etcdraft/mocks Index | Files

package mocks

import "github.com/hyperledger/fabric/orderer/consensus/etcdraft/mocks"

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

Package Files

chain_getter.go configurator.go inactive_chain_registry.go message_receiver.go mock_blockpuller.go mock_rpc.go msp.go orderer_capabilities.go orderer_config.go orderer_org.go receiver_getter.go

type ChainGetter Uses

type ChainGetter struct {
    mock.Mock
}

ChainGetter is an autogenerated mock type for the ChainGetter type

func (*ChainGetter) GetChain Uses

func (_m *ChainGetter) GetChain(chainID string) *multichannel.ChainSupport

GetChain provides a mock function with given fields: chainID

type FakeBlockPuller Uses

type FakeBlockPuller struct {
    CloseStub func()

    HeightsByEndpointsStub func() (map[string]uint64, error)

    PullBlockStub func(uint64) *common.Block
    // contains filtered or unexported fields
}

func (*FakeBlockPuller) Close Uses

func (fake *FakeBlockPuller) Close()

func (*FakeBlockPuller) CloseCallCount Uses

func (fake *FakeBlockPuller) CloseCallCount() int

func (*FakeBlockPuller) CloseCalls Uses

func (fake *FakeBlockPuller) CloseCalls(stub func())

func (*FakeBlockPuller) HeightsByEndpoints Uses

func (fake *FakeBlockPuller) HeightsByEndpoints() (map[string]uint64, error)

func (*FakeBlockPuller) HeightsByEndpointsCallCount Uses

func (fake *FakeBlockPuller) HeightsByEndpointsCallCount() int

func (*FakeBlockPuller) HeightsByEndpointsCalls Uses

func (fake *FakeBlockPuller) HeightsByEndpointsCalls(stub func() (map[string]uint64, error))

func (*FakeBlockPuller) HeightsByEndpointsReturns Uses

func (fake *FakeBlockPuller) HeightsByEndpointsReturns(result1 map[string]uint64, result2 error)

func (*FakeBlockPuller) HeightsByEndpointsReturnsOnCall Uses

func (fake *FakeBlockPuller) HeightsByEndpointsReturnsOnCall(i int, result1 map[string]uint64, result2 error)

func (*FakeBlockPuller) Invocations Uses

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

func (*FakeBlockPuller) PullBlock Uses

func (fake *FakeBlockPuller) PullBlock(arg1 uint64) *common.Block

func (*FakeBlockPuller) PullBlockArgsForCall Uses

func (fake *FakeBlockPuller) PullBlockArgsForCall(i int) uint64

func (*FakeBlockPuller) PullBlockCallCount Uses

func (fake *FakeBlockPuller) PullBlockCallCount() int

func (*FakeBlockPuller) PullBlockCalls Uses

func (fake *FakeBlockPuller) PullBlockCalls(stub func(uint64) *common.Block)

func (*FakeBlockPuller) PullBlockReturns Uses

func (fake *FakeBlockPuller) PullBlockReturns(result1 *common.Block)

func (*FakeBlockPuller) PullBlockReturnsOnCall Uses

func (fake *FakeBlockPuller) PullBlockReturnsOnCall(i int, result1 *common.Block)

type FakeConfigurator Uses

type FakeConfigurator struct {
    ConfigureStub func(string, []cluster.RemoteNode)
    // contains filtered or unexported fields
}

func (*FakeConfigurator) Configure Uses

func (fake *FakeConfigurator) Configure(arg1 string, arg2 []cluster.RemoteNode)

func (*FakeConfigurator) ConfigureArgsForCall Uses

func (fake *FakeConfigurator) ConfigureArgsForCall(i int) (string, []cluster.RemoteNode)

func (*FakeConfigurator) ConfigureCallCount Uses

func (fake *FakeConfigurator) ConfigureCallCount() int

func (*FakeConfigurator) ConfigureCalls Uses

func (fake *FakeConfigurator) ConfigureCalls(stub func(string, []cluster.RemoteNode))

func (*FakeConfigurator) Invocations Uses

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

type FakeRPC Uses

type FakeRPC struct {
    SendConsensusStub func(uint64, *orderer.ConsensusRequest) error

    SendSubmitStub func(uint64, *orderer.SubmitRequest) error
    // contains filtered or unexported fields
}

func (*FakeRPC) Invocations Uses

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

func (*FakeRPC) SendConsensus Uses

func (fake *FakeRPC) SendConsensus(arg1 uint64, arg2 *orderer.ConsensusRequest) error

func (*FakeRPC) SendConsensusArgsForCall Uses

func (fake *FakeRPC) SendConsensusArgsForCall(i int) (uint64, *orderer.ConsensusRequest)

func (*FakeRPC) SendConsensusCallCount Uses

func (fake *FakeRPC) SendConsensusCallCount() int

func (*FakeRPC) SendConsensusCalls Uses

func (fake *FakeRPC) SendConsensusCalls(stub func(uint64, *orderer.ConsensusRequest) error)

func (*FakeRPC) SendConsensusReturns Uses

func (fake *FakeRPC) SendConsensusReturns(result1 error)

func (*FakeRPC) SendConsensusReturnsOnCall Uses

func (fake *FakeRPC) SendConsensusReturnsOnCall(i int, result1 error)

func (*FakeRPC) SendSubmit Uses

func (fake *FakeRPC) SendSubmit(arg1 uint64, arg2 *orderer.SubmitRequest) error

func (*FakeRPC) SendSubmitArgsForCall Uses

func (fake *FakeRPC) SendSubmitArgsForCall(i int) (uint64, *orderer.SubmitRequest)

func (*FakeRPC) SendSubmitCallCount Uses

func (fake *FakeRPC) SendSubmitCallCount() int

func (*FakeRPC) SendSubmitCalls Uses

func (fake *FakeRPC) SendSubmitCalls(stub func(uint64, *orderer.SubmitRequest) error)

func (*FakeRPC) SendSubmitReturns Uses

func (fake *FakeRPC) SendSubmitReturns(result1 error)

func (*FakeRPC) SendSubmitReturnsOnCall Uses

func (fake *FakeRPC) SendSubmitReturnsOnCall(i int, result1 error)

type InactiveChainRegistry Uses

type InactiveChainRegistry struct {
    mock.Mock
}

InactiveChainRegistry is an autogenerated mock type for the InactiveChainRegistry type

func (*InactiveChainRegistry) TrackChain Uses

func (_m *InactiveChainRegistry) TrackChain(chainName string, genesisBlock *common.Block, createChain func())

TrackChain provides a mock function with given fields: chainName, genesisBlock, createChain

type MSP Uses

type MSP struct {
    DeserializeIdentityStub func([]byte) (msp.Identity, error)

    GetDefaultSigningIdentityStub func() (msp.SigningIdentity, error)

    GetIdentifierStub func() (string, error)

    GetSigningIdentityStub func(*msp.IdentityIdentifier) (msp.SigningIdentity, error)

    GetTLSIntermediateCertsStub func() [][]byte

    GetTLSRootCertsStub func() [][]byte

    GetTypeStub func() msp.ProviderType

    GetVersionStub func() msp.MSPVersion

    IsWellFormedStub func(*mspa.SerializedIdentity) error

    SatisfiesPrincipalStub func(msp.Identity, *mspa.MSPPrincipal) error

    SetupStub func(*mspa.MSPConfig) error

    ValidateStub func(msp.Identity) error
    // contains filtered or unexported fields
}

func (*MSP) DeserializeIdentity Uses

func (fake *MSP) DeserializeIdentity(arg1 []byte) (msp.Identity, error)

func (*MSP) DeserializeIdentityArgsForCall Uses

func (fake *MSP) DeserializeIdentityArgsForCall(i int) []byte

func (*MSP) DeserializeIdentityCallCount Uses

func (fake *MSP) DeserializeIdentityCallCount() int

func (*MSP) DeserializeIdentityCalls Uses

func (fake *MSP) DeserializeIdentityCalls(stub func([]byte) (msp.Identity, error))

func (*MSP) DeserializeIdentityReturns Uses

func (fake *MSP) DeserializeIdentityReturns(result1 msp.Identity, result2 error)

func (*MSP) DeserializeIdentityReturnsOnCall Uses

func (fake *MSP) DeserializeIdentityReturnsOnCall(i int, result1 msp.Identity, result2 error)

func (*MSP) GetDefaultSigningIdentity Uses

func (fake *MSP) GetDefaultSigningIdentity() (msp.SigningIdentity, error)

func (*MSP) GetDefaultSigningIdentityCallCount Uses

func (fake *MSP) GetDefaultSigningIdentityCallCount() int

func (*MSP) GetDefaultSigningIdentityCalls Uses

func (fake *MSP) GetDefaultSigningIdentityCalls(stub func() (msp.SigningIdentity, error))

func (*MSP) GetDefaultSigningIdentityReturns Uses

func (fake *MSP) GetDefaultSigningIdentityReturns(result1 msp.SigningIdentity, result2 error)

func (*MSP) GetDefaultSigningIdentityReturnsOnCall Uses

func (fake *MSP) GetDefaultSigningIdentityReturnsOnCall(i int, result1 msp.SigningIdentity, result2 error)

func (*MSP) GetIdentifier Uses

func (fake *MSP) GetIdentifier() (string, error)

func (*MSP) GetIdentifierCallCount Uses

func (fake *MSP) GetIdentifierCallCount() int

func (*MSP) GetIdentifierCalls Uses

func (fake *MSP) GetIdentifierCalls(stub func() (string, error))

func (*MSP) GetIdentifierReturns Uses

func (fake *MSP) GetIdentifierReturns(result1 string, result2 error)

func (*MSP) GetIdentifierReturnsOnCall Uses

func (fake *MSP) GetIdentifierReturnsOnCall(i int, result1 string, result2 error)

func (*MSP) GetSigningIdentity Uses

func (fake *MSP) GetSigningIdentity(arg1 *msp.IdentityIdentifier) (msp.SigningIdentity, error)

func (*MSP) GetSigningIdentityArgsForCall Uses

func (fake *MSP) GetSigningIdentityArgsForCall(i int) *msp.IdentityIdentifier

func (*MSP) GetSigningIdentityCallCount Uses

func (fake *MSP) GetSigningIdentityCallCount() int

func (*MSP) GetSigningIdentityCalls Uses

func (fake *MSP) GetSigningIdentityCalls(stub func(*msp.IdentityIdentifier) (msp.SigningIdentity, error))

func (*MSP) GetSigningIdentityReturns Uses

func (fake *MSP) GetSigningIdentityReturns(result1 msp.SigningIdentity, result2 error)

func (*MSP) GetSigningIdentityReturnsOnCall Uses

func (fake *MSP) GetSigningIdentityReturnsOnCall(i int, result1 msp.SigningIdentity, result2 error)

func (*MSP) GetTLSIntermediateCerts Uses

func (fake *MSP) GetTLSIntermediateCerts() [][]byte

func (*MSP) GetTLSIntermediateCertsCallCount Uses

func (fake *MSP) GetTLSIntermediateCertsCallCount() int

func (*MSP) GetTLSIntermediateCertsCalls Uses

func (fake *MSP) GetTLSIntermediateCertsCalls(stub func() [][]byte)

func (*MSP) GetTLSIntermediateCertsReturns Uses

func (fake *MSP) GetTLSIntermediateCertsReturns(result1 [][]byte)

func (*MSP) GetTLSIntermediateCertsReturnsOnCall Uses

func (fake *MSP) GetTLSIntermediateCertsReturnsOnCall(i int, result1 [][]byte)

func (*MSP) GetTLSRootCerts Uses

func (fake *MSP) GetTLSRootCerts() [][]byte

func (*MSP) GetTLSRootCertsCallCount Uses

func (fake *MSP) GetTLSRootCertsCallCount() int

func (*MSP) GetTLSRootCertsCalls Uses

func (fake *MSP) GetTLSRootCertsCalls(stub func() [][]byte)

func (*MSP) GetTLSRootCertsReturns Uses

func (fake *MSP) GetTLSRootCertsReturns(result1 [][]byte)

func (*MSP) GetTLSRootCertsReturnsOnCall Uses

func (fake *MSP) GetTLSRootCertsReturnsOnCall(i int, result1 [][]byte)

func (*MSP) GetType Uses

func (fake *MSP) GetType() msp.ProviderType

func (*MSP) GetTypeCallCount Uses

func (fake *MSP) GetTypeCallCount() int

func (*MSP) GetTypeCalls Uses

func (fake *MSP) GetTypeCalls(stub func() msp.ProviderType)

func (*MSP) GetTypeReturns Uses

func (fake *MSP) GetTypeReturns(result1 msp.ProviderType)

func (*MSP) GetTypeReturnsOnCall Uses

func (fake *MSP) GetTypeReturnsOnCall(i int, result1 msp.ProviderType)

func (*MSP) GetVersion Uses

func (fake *MSP) GetVersion() msp.MSPVersion

func (*MSP) GetVersionCallCount Uses

func (fake *MSP) GetVersionCallCount() int

func (*MSP) GetVersionCalls Uses

func (fake *MSP) GetVersionCalls(stub func() msp.MSPVersion)

func (*MSP) GetVersionReturns Uses

func (fake *MSP) GetVersionReturns(result1 msp.MSPVersion)

func (*MSP) GetVersionReturnsOnCall Uses

func (fake *MSP) GetVersionReturnsOnCall(i int, result1 msp.MSPVersion)

func (*MSP) Invocations Uses

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

func (*MSP) IsWellFormed Uses

func (fake *MSP) IsWellFormed(arg1 *mspa.SerializedIdentity) error

func (*MSP) IsWellFormedArgsForCall Uses

func (fake *MSP) IsWellFormedArgsForCall(i int) *mspa.SerializedIdentity

func (*MSP) IsWellFormedCallCount Uses

func (fake *MSP) IsWellFormedCallCount() int

func (*MSP) IsWellFormedCalls Uses

func (fake *MSP) IsWellFormedCalls(stub func(*mspa.SerializedIdentity) error)

func (*MSP) IsWellFormedReturns Uses

func (fake *MSP) IsWellFormedReturns(result1 error)

func (*MSP) IsWellFormedReturnsOnCall Uses

func (fake *MSP) IsWellFormedReturnsOnCall(i int, result1 error)

func (*MSP) SatisfiesPrincipal Uses

func (fake *MSP) SatisfiesPrincipal(arg1 msp.Identity, arg2 *mspa.MSPPrincipal) error

func (*MSP) SatisfiesPrincipalArgsForCall Uses

func (fake *MSP) SatisfiesPrincipalArgsForCall(i int) (msp.Identity, *mspa.MSPPrincipal)

func (*MSP) SatisfiesPrincipalCallCount Uses

func (fake *MSP) SatisfiesPrincipalCallCount() int

func (*MSP) SatisfiesPrincipalCalls Uses

func (fake *MSP) SatisfiesPrincipalCalls(stub func(msp.Identity, *mspa.MSPPrincipal) error)

func (*MSP) SatisfiesPrincipalReturns Uses

func (fake *MSP) SatisfiesPrincipalReturns(result1 error)

func (*MSP) SatisfiesPrincipalReturnsOnCall Uses

func (fake *MSP) SatisfiesPrincipalReturnsOnCall(i int, result1 error)

func (*MSP) Setup Uses

func (fake *MSP) Setup(arg1 *mspa.MSPConfig) error

func (*MSP) SetupArgsForCall Uses

func (fake *MSP) SetupArgsForCall(i int) *mspa.MSPConfig

func (*MSP) SetupCallCount Uses

func (fake *MSP) SetupCallCount() int

func (*MSP) SetupCalls Uses

func (fake *MSP) SetupCalls(stub func(*mspa.MSPConfig) error)

func (*MSP) SetupReturns Uses

func (fake *MSP) SetupReturns(result1 error)

func (*MSP) SetupReturnsOnCall Uses

func (fake *MSP) SetupReturnsOnCall(i int, result1 error)

func (*MSP) Validate Uses

func (fake *MSP) Validate(arg1 msp.Identity) error

func (*MSP) ValidateArgsForCall Uses

func (fake *MSP) ValidateArgsForCall(i int) msp.Identity

func (*MSP) ValidateCallCount Uses

func (fake *MSP) ValidateCallCount() int

func (*MSP) ValidateCalls Uses

func (fake *MSP) ValidateCalls(stub func(msp.Identity) error)

func (*MSP) ValidateReturns Uses

func (fake *MSP) ValidateReturns(result1 error)

func (*MSP) ValidateReturnsOnCall Uses

func (fake *MSP) ValidateReturnsOnCall(i int, result1 error)

type MessageReceiver Uses

type MessageReceiver struct {
    mock.Mock
}

MessageReceiver is an autogenerated mock type for the MessageReceiver type

func (*MessageReceiver) Consensus Uses

func (_m *MessageReceiver) Consensus(req *orderer.ConsensusRequest, sender uint64) error

Consensus provides a mock function with given fields: req, sender

func (*MessageReceiver) Submit Uses

func (_m *MessageReceiver) Submit(req *orderer.SubmitRequest, sender uint64) error

Submit provides a mock function with given fields: req, sender

type OrdererCapabilities Uses

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 Uses

func (fake *OrdererCapabilities) ConsensusTypeMigration() bool

func (*OrdererCapabilities) ConsensusTypeMigrationCallCount Uses

func (fake *OrdererCapabilities) ConsensusTypeMigrationCallCount() int

func (*OrdererCapabilities) ConsensusTypeMigrationCalls Uses

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

func (*OrdererCapabilities) ConsensusTypeMigrationReturns Uses

func (fake *OrdererCapabilities) ConsensusTypeMigrationReturns(result1 bool)

func (*OrdererCapabilities) ConsensusTypeMigrationReturnsOnCall Uses

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

func (*OrdererCapabilities) ExpirationCheck Uses

func (fake *OrdererCapabilities) ExpirationCheck() bool

func (*OrdererCapabilities) ExpirationCheckCallCount Uses

func (fake *OrdererCapabilities) ExpirationCheckCallCount() int

func (*OrdererCapabilities) ExpirationCheckCalls Uses

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

func (*OrdererCapabilities) ExpirationCheckReturns Uses

func (fake *OrdererCapabilities) ExpirationCheckReturns(result1 bool)

func (*OrdererCapabilities) ExpirationCheckReturnsOnCall Uses

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

func (*OrdererCapabilities) Invocations Uses

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

func (*OrdererCapabilities) PredictableChannelTemplate Uses

func (fake *OrdererCapabilities) PredictableChannelTemplate() bool

func (*OrdererCapabilities) PredictableChannelTemplateCallCount Uses

func (fake *OrdererCapabilities) PredictableChannelTemplateCallCount() int

func (*OrdererCapabilities) PredictableChannelTemplateCalls Uses

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

func (*OrdererCapabilities) PredictableChannelTemplateReturns Uses

func (fake *OrdererCapabilities) PredictableChannelTemplateReturns(result1 bool)

func (*OrdererCapabilities) PredictableChannelTemplateReturnsOnCall Uses

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

func (*OrdererCapabilities) Resubmission Uses

func (fake *OrdererCapabilities) Resubmission() bool

func (*OrdererCapabilities) ResubmissionCallCount Uses

func (fake *OrdererCapabilities) ResubmissionCallCount() int

func (*OrdererCapabilities) ResubmissionCalls Uses

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

func (*OrdererCapabilities) ResubmissionReturns Uses

func (fake *OrdererCapabilities) ResubmissionReturns(result1 bool)

func (*OrdererCapabilities) ResubmissionReturnsOnCall Uses

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

func (*OrdererCapabilities) Supported Uses

func (fake *OrdererCapabilities) Supported() error

func (*OrdererCapabilities) SupportedCallCount Uses

func (fake *OrdererCapabilities) SupportedCallCount() int

func (*OrdererCapabilities) SupportedCalls Uses

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

func (*OrdererCapabilities) SupportedReturns Uses

func (fake *OrdererCapabilities) SupportedReturns(result1 error)

func (*OrdererCapabilities) SupportedReturnsOnCall Uses

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

func (*OrdererCapabilities) UseChannelCreationPolicyAsAdmins Uses

func (fake *OrdererCapabilities) UseChannelCreationPolicyAsAdmins() bool

func (*OrdererCapabilities) UseChannelCreationPolicyAsAdminsCallCount Uses

func (fake *OrdererCapabilities) UseChannelCreationPolicyAsAdminsCallCount() int

func (*OrdererCapabilities) UseChannelCreationPolicyAsAdminsCalls Uses

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

func (*OrdererCapabilities) UseChannelCreationPolicyAsAdminsReturns Uses

func (fake *OrdererCapabilities) UseChannelCreationPolicyAsAdminsReturns(result1 bool)

func (*OrdererCapabilities) UseChannelCreationPolicyAsAdminsReturnsOnCall Uses

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

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

type OrdererOrg struct {
    EndpointsStub func() []string

    MSPStub func() msp.MSP

    MSPIDStub func() string

    NameStub func() string
    // contains filtered or unexported fields
}

func (*OrdererOrg) Endpoints Uses

func (fake *OrdererOrg) Endpoints() []string

func (*OrdererOrg) EndpointsCallCount Uses

func (fake *OrdererOrg) EndpointsCallCount() int

func (*OrdererOrg) EndpointsCalls Uses

func (fake *OrdererOrg) EndpointsCalls(stub func() []string)

func (*OrdererOrg) EndpointsReturns Uses

func (fake *OrdererOrg) EndpointsReturns(result1 []string)

func (*OrdererOrg) EndpointsReturnsOnCall Uses

func (fake *OrdererOrg) EndpointsReturnsOnCall(i int, result1 []string)

func (*OrdererOrg) Invocations Uses

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

func (*OrdererOrg) MSP Uses

func (fake *OrdererOrg) MSP() msp.MSP

func (*OrdererOrg) MSPCallCount Uses

func (fake *OrdererOrg) MSPCallCount() int

func (*OrdererOrg) MSPCalls Uses

func (fake *OrdererOrg) MSPCalls(stub func() msp.MSP)

func (*OrdererOrg) MSPID Uses

func (fake *OrdererOrg) MSPID() string

func (*OrdererOrg) MSPIDCallCount Uses

func (fake *OrdererOrg) MSPIDCallCount() int

func (*OrdererOrg) MSPIDCalls Uses

func (fake *OrdererOrg) MSPIDCalls(stub func() string)

func (*OrdererOrg) MSPIDReturns Uses

func (fake *OrdererOrg) MSPIDReturns(result1 string)

func (*OrdererOrg) MSPIDReturnsOnCall Uses

func (fake *OrdererOrg) MSPIDReturnsOnCall(i int, result1 string)

func (*OrdererOrg) MSPReturns Uses

func (fake *OrdererOrg) MSPReturns(result1 msp.MSP)

func (*OrdererOrg) MSPReturnsOnCall Uses

func (fake *OrdererOrg) MSPReturnsOnCall(i int, result1 msp.MSP)

func (*OrdererOrg) Name Uses

func (fake *OrdererOrg) Name() string

func (*OrdererOrg) NameCallCount Uses

func (fake *OrdererOrg) NameCallCount() int

func (*OrdererOrg) NameCalls Uses

func (fake *OrdererOrg) NameCalls(stub func() string)

func (*OrdererOrg) NameReturns Uses

func (fake *OrdererOrg) NameReturns(result1 string)

func (*OrdererOrg) NameReturnsOnCall Uses

func (fake *OrdererOrg) NameReturnsOnCall(i int, result1 string)

type ReceiverGetter Uses

type ReceiverGetter struct {
    mock.Mock
}

ReceiverGetter is an autogenerated mock type for the ReceiverGetter type

func (*ReceiverGetter) ReceiverByChain Uses

func (_m *ReceiverGetter) ReceiverByChain(channelID string) etcdraft.MessageReceiver

ReceiverByChain provides a mock function with given fields: channelID

Package mocks imports 11 packages (graph). Updated 2020-05-14. Refresh now. Tools for package owners.