Documentation ¶
Index ¶
- type GossipMock
- func (g *GossipMock) Accept(acceptor common.MessageAcceptor, passThrough bool) (<-chan *proto.GossipMessage, <-chan protoext.ReceivedMessage)
- func (g *GossipMock) Gossip(msg *proto.GossipMessage)
- func (g *GossipMock) IdentityInfo() api.PeerIdentitySet
- func (g *GossipMock) IsInMyOrg(member discovery.NetworkMember) bool
- func (g *GossipMock) JoinChan(joinMsg api.JoinChannelMessage, channelID common.ChannelID)
- func (g *GossipMock) LeaveChan(_ common.ChannelID)
- func (*GossipMock) PeerFilter(channel common.ChannelID, messagePredicate api.SubChannelSelectionCriteria) (filter.RoutingFilter, error)
- func (g *GossipMock) Peers() []discovery.NetworkMember
- func (g *GossipMock) PeersOfChannel(channelID common.ChannelID) []discovery.NetworkMember
- func (g *GossipMock) SelfChannelInfo(common.ChannelID) *protoext.SignedGossipMessage
- func (g *GossipMock) SelfMembershipInfo() discovery.NetworkMember
- func (g *GossipMock) Send(msg *proto.GossipMessage, peers ...*comm.RemotePeer)
- func (g *GossipMock) SendByCriteria(*protoext.SignedGossipMessage, gossip.SendCriteria) error
- func (g *GossipMock) Stop()
- func (g *GossipMock) SuspectPeers(s api.PeerSuspector)
- func (g *GossipMock) UpdateChaincodes(chaincode []*proto.Chaincode, channelID common.ChannelID)
- func (g *GossipMock) UpdateLedgerHeight(height uint64, channelID common.ChannelID)
- func (g *GossipMock) UpdateMetadata(metadata []byte)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GossipMock ¶
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) IsInMyOrg ¶ added in v1.4.7
func (g *GossipMock) IsInMyOrg(member discovery.NetworkMember) bool
func (*GossipMock) JoinChan ¶
func (g *GossipMock) JoinChan(joinMsg api.JoinChannelMessage, channelID common.ChannelID)
func (*GossipMock) LeaveChan ¶ added in v1.1.0
func (g *GossipMock) LeaveChan(_ common.ChannelID)
func (*GossipMock) PeerFilter ¶ added in v1.1.0
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 ¶ added in v1.2.0
func (g *GossipMock) SelfChannelInfo(common.ChannelID) *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 (g *GossipMock) SendByCriteria(*protoext.SignedGossipMessage, gossip.SendCriteria) error
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, channelID common.ChannelID)
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, 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)
Click to show internal directories.
Click to hide internal directories.