Documentation
¶
Index ¶
- Constants
- type Plugin
- func Get(id PluginID, bus event.Manager, acn connectivity.ACN, onion string) (Plugin, error)
- func NewAntiSpam(bus event.Manager) Plugin
- func NewConnectionRetry(bus event.Manager, onion string) Plugin
- func NewHeartbeat(bus event.Manager) Plugin
- func NewNetworkCheck(onion string, bus event.Manager, acn connectivity.ACN) Plugin
- type PluginID
Constants ¶
const MaxBaseTimeoutSec = 5 * 60 // a max base time out of 5 min
const NetworkCheckError = "Error"
NetworkCheckError is a status for when the NetworkCheck Plugin has had an error making an out going connection indicating it may be offline
const NetworkCheckPeriod = time.Minute
const NetworkCheckSuccess = "Success"
NetworkCheckSuccess is a status for when the NetworkCheck Plugin has had a successful message from a peer, indicating it is online right now
const PriorityQueueTimeSinceQualifierHours float64 = 168
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Plugin ¶
type Plugin interface { Start() Shutdown() Id() PluginID }
Plugin is the interface for a plugin
func NewAntiSpam ¶ added in v0.18.2
NewAntiSpam returns a Plugin that when started will trigger antispam payments on a regular interval
func NewConnectionRetry ¶ added in v0.3.1
NewConnectionRetry returns a Plugin that when started will retry connecting to contacts with a failedCount timing
func NewHeartbeat ¶ added in v0.19.5
NewHeartbeat returns a Plugin that when started will trigger heartbeat checks on a regular interval
func NewNetworkCheck ¶ added in v0.3.3
NewNetworkCheck returns a Plugin that when started will attempt various network tests