factory

package
v1.0.145 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2020 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewP2PAntiFloodAndBlackList

func NewP2PAntiFloodAndBlackList(
	config config.Config,
	statusHandler core.AppStatusHandler,
	currentPid core.PeerID,
) (process.P2PAntifloodHandler, process.PeerBlackListCacher, process.TimeCacher, error)

NewP2PAntiFloodAndBlackList will return instances of antiflood and blacklist, based on the config

func NewP2POutputAntiFlood

func NewP2POutputAntiFlood(mainConfig config.Config) (process.P2PAntifloodHandler, error)

NewP2POutputAntiFlood will return an instance of an output antiflood component based on the config

Types

This section is empty.

Jump to

Keyboard shortcuts

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