fabric: github.com/hyperledger/fabric/gossip/state/mocks Index | Files

package mocks

import "github.com/hyperledger/fabric/gossip/state/mocks"

Index

Package Files

gossip.go

type GossipMock Uses

type GossipMock struct {
    mock.Mock
}

func (*GossipMock) Accept Uses

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

func (*GossipMock) Gossip Uses

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

func (*GossipMock) IdentityInfo Uses

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

IdentityInfo returns information known peer identities

func (*GossipMock) IsInMyOrg Uses

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

func (*GossipMock) JoinChan Uses

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

func (*GossipMock) LeaveChan Uses

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

func (*GossipMock) PeerFilter Uses

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

func (*GossipMock) Peers Uses

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

func (*GossipMock) PeersOfChannel Uses

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

func (*GossipMock) SelfChannelInfo Uses

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

func (*GossipMock) SelfMembershipInfo Uses

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

func (*GossipMock) Send Uses

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

func (*GossipMock) SendByCriteria Uses

func (g *GossipMock) SendByCriteria(*protoext.SignedGossipMessage, gossip.SendCriteria) error

func (*GossipMock) Stop Uses

func (g *GossipMock) Stop()

func (*GossipMock) SuspectPeers Uses

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

func (*GossipMock) UpdateChaincodes Uses

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 Uses

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 Uses

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

Package mocks imports 9 packages (graph). Updated 2019-12-10. Refresh now. Tools for package owners.