mocks

package
v2.0.0-alpha+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2019 License: Apache-2.0 Imports: 9 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GossipMock

type GossipMock struct {
	mock.Mock
}

func (*GossipMock) Accept

func (g *GossipMock) Accept(acceptor common.MessageAcceptor, passThrough bool) (<-chan *proto.GossipMessage, <-chan protoext.ReceivedMessage)

func (*GossipMock) Gossip

func (g *GossipMock) Gossip(msg *proto.GossipMessage)

func (*GossipMock) IdentityInfo added in v1.2.0

func (g *GossipMock) IdentityInfo() api.PeerIdentitySet

IdentityInfo returns information known peer identities

func (*GossipMock) JoinChan

func (g *GossipMock) JoinChan(joinMsg api.JoinChannelMessage, chainID common.ChainID)

func (*GossipMock) LeaveChan added in v1.1.0

func (g *GossipMock) LeaveChan(_ common.ChainID)

func (*GossipMock) PeerFilter added in v1.1.0

func (*GossipMock) PeerFilter(channel common.ChainID, messagePredicate api.SubChannelSelectionCriteria) (filter.RoutingFilter, error)

func (*GossipMock) Peers

func (g *GossipMock) Peers() []discovery.NetworkMember

func (*GossipMock) PeersOfChannel

func (g *GossipMock) PeersOfChannel(chainID common.ChainID) []discovery.NetworkMember

func (*GossipMock) SelfChannelInfo added in v1.2.0

func (g *GossipMock) SelfChannelInfo(common.ChainID) *protoext.SignedGossipMessage

func (*GossipMock) SelfMembershipInfo added in v1.2.0

func (g *GossipMock) SelfMembershipInfo() discovery.NetworkMember

func (*GossipMock) Send

func (g *GossipMock) Send(msg *proto.GossipMessage, peers ...*comm.RemotePeer)

func (*GossipMock) SendByCriteria added in v1.1.0

func (*GossipMock) Stop

func (g *GossipMock) Stop()

func (*GossipMock) SuspectPeers

func (g *GossipMock) SuspectPeers(s api.PeerSuspector)

func (*GossipMock) UpdateChaincodes added in v1.2.0

func (g *GossipMock) UpdateChaincodes(chaincode []*proto.Chaincode, chainID common.ChainID)

UpdateChaincodes updates the chaincodes the peer publishes to other peers in the channel

func (*GossipMock) UpdateLedgerHeight added in v1.2.0

func (g *GossipMock) UpdateLedgerHeight(height uint64, chainID common.ChainID)

UpdateLedgerHeight updates the ledger height the peer publishes to other peers in the channel

func (*GossipMock) UpdateMetadata

func (g *GossipMock) UpdateMetadata(metadata []byte)

Jump to

Keyboard shortcuts

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