disabled

package
v1.0.127 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2020 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewNilTopicFloodPreventer added in v1.0.127

func NewNilTopicFloodPreventer() *nilTopicFloodPreventer

NewNilTopicFloodPreventer returns a new instance of nilTopicFloodPreventer

Types

type AntiFlood

type AntiFlood struct {
}

AntiFlood is a mock implementation of the antiflood interface

func (*AntiFlood) ApplyConsensusSize added in v1.0.123

func (af *AntiFlood) ApplyConsensusSize(_ int)

ApplyConsensusSize does nothing

func (*AntiFlood) CanProcessMessage

func (af *AntiFlood) CanProcessMessage(_ p2p.MessageP2P, _ core.PeerID) error

CanProcessMessage will always return nil

func (*AntiFlood) CanProcessMessagesOnTopic

func (af *AntiFlood) CanProcessMessagesOnTopic(_ core.PeerID, _ string, _ uint32, _ uint64) error

CanProcessMessagesOnTopic will always return nil

func (*AntiFlood) IsInterfaceNil

func (af *AntiFlood) IsInterfaceNil() bool

IsInterfaceNil return true if there is no value under the interface

func (*AntiFlood) ResetForTopic

func (af *AntiFlood) ResetForTopic(_ string)

ResetForTopic won't do anything

func (*AntiFlood) SetDebugger added in v1.0.127

func (af *AntiFlood) SetDebugger(_ process.AntifloodDebugger) error

SetDebugger returns nil

func (*AntiFlood) SetMaxMessagesForTopic

func (af *AntiFlood) SetMaxMessagesForTopic(_ string, _ uint32)

SetMaxMessagesForTopic won't do anything

type AntifloodDebugger added in v1.0.127

type AntifloodDebugger struct {
}

AntifloodDebugger is a disabled instance of the antoiflood debugger

func (*AntifloodDebugger) AddData added in v1.0.127

func (ad *AntifloodDebugger) AddData(_ core.PeerID, _ string, _ uint32, _ uint64, _ bool)

AddData does nothing

func (*AntifloodDebugger) Close added in v1.0.127

func (ad *AntifloodDebugger) Close() error

Close returns nil

func (*AntifloodDebugger) IsInterfaceNil added in v1.0.127

func (ad *AntifloodDebugger) IsInterfaceNil() bool

IsInterfaceNil returns true if there is no value under the interface

type PeerBlacklistHandler added in v1.0.127

type PeerBlacklistHandler struct {
}

PeerBlacklistHandler is a mock implementation of PeerBlacklistHandler that does not manage black listed keys (all keys [peers] are whitelisted)

func (*PeerBlacklistHandler) Add added in v1.0.127

func (pdbh *PeerBlacklistHandler) Add(_ core.PeerID) error

Add does nothing

func (*PeerBlacklistHandler) AddWithSpan added in v1.0.127

func (pdbh *PeerBlacklistHandler) AddWithSpan(_ core.PeerID, _ time.Duration) error

AddWithSpan does nothing

func (*PeerBlacklistHandler) Has added in v1.0.127

func (pdbh *PeerBlacklistHandler) Has(_ core.PeerID) bool

Has outputs false (all peers are white listed)

func (*PeerBlacklistHandler) IsInterfaceNil added in v1.0.127

func (pdbh *PeerBlacklistHandler) IsInterfaceNil() bool

IsInterfaceNil returns true if there is no value under the interface

func (*PeerBlacklistHandler) Sweep added in v1.0.127

func (pdbh *PeerBlacklistHandler) Sweep()

Sweep does nothing

Jump to

Keyboard shortcuts

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