mocks

package
v2.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

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

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

IdentityInfo returns information known peer identities

func (*GossipMock) IsInMyOrg

func (g *GossipMock) IsInMyOrg(member discovery.NetworkMember) bool

func (*GossipMock) JoinChan

func (g *GossipMock) JoinChan(joinMsg api.JoinChannelMessage, channelID common.ChannelID)

func (*GossipMock) LeaveChan

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

func (*GossipMock) PeerFilter

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

func (*GossipMock) Peers

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

func (*GossipMock) PeersOfChannel

func (g *GossipMock) PeersOfChannel(channelID common.ChannelID) []discovery.NetworkMember

func (*GossipMock) SelfChannelInfo

func (*GossipMock) SelfMembershipInfo

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

func (*GossipMock) Send

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

func (*GossipMock) SendByCriteria

func (*GossipMock) Stop

func (g *GossipMock) Stop()

func (*GossipMock) SuspectPeers

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

func (*GossipMock) UpdateChaincodes

func (g *GossipMock) UpdateChaincodes(chaincode []*proto.Chaincode, channelID common.ChannelID)

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

func (*GossipMock) UpdateLedgerHeight

func (g *GossipMock) UpdateLedgerHeight(height uint64, channelID common.ChannelID)

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