Versions in this module Expand all Collapse all v0 v0.1.1 May 14, 2023 Changes in this version + type MockReporter struct + func NewMockReporter() *MockReporter + func (mpbr *MockReporter) GetBehaviours(peerID p2p.ID) []PeerBehaviour + func (mpbr *MockReporter) Report(behaviour PeerBehaviour) error + type PeerBehaviour struct + func BadMessage(peerID p2p.ID, explanation string) PeerBehaviour + func BlockPart(peerID p2p.ID, explanation string) PeerBehaviour + func ConsensusVote(peerID p2p.ID, explanation string) PeerBehaviour + func MessageOutOfOrder(peerID p2p.ID, explanation string) PeerBehaviour + type Reporter interface + Report func(behaviour PeerBehaviour) error + type SwitchReporter struct + func NewSwitchReporter(sw *p2p.Switch) *SwitchReporter + func (spbr *SwitchReporter) Report(behaviour PeerBehaviour) error