disabled

package
v1.0.121 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AntiFlood

type AntiFlood struct {
}

AntiFlood is a mock implementation of the antiflood interface

func (*AntiFlood) CanProcessMessage

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

CanProcessMessage will always return nil

func (*AntiFlood) CanProcessMessagesOnTopic

func (af *AntiFlood) CanProcessMessagesOnTopic(_ p2p.PeerID, _ string, _ uint32) 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) SetMaxMessagesForTopic

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

SetMaxMessagesForTopic won't do anything

type BlacklistHandler

type BlacklistHandler struct {
}

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

func (*BlacklistHandler) Add

func (dbh *BlacklistHandler) Add(_ string) error

Add does nothing

func (*BlacklistHandler) AddWithSpan

func (dbh *BlacklistHandler) AddWithSpan(_ string, _ time.Duration) error

AddWithSpan does nothing

func (*BlacklistHandler) Has

func (dbh *BlacklistHandler) Has(_ string) bool

Has outputs false (all peers are white listed)

func (*BlacklistHandler) IsInterfaceNil

func (dbh *BlacklistHandler) IsInterfaceNil() bool

IsInterfaceNil returns true if there is no value under the interface

func (*BlacklistHandler) Sweep

func (dbh *BlacklistHandler) Sweep()

Sweep does nothing

Jump to

Keyboard shortcuts

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