reacher

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2022 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Overview

Package reacher runs a background worker that will ping peers from an internal queue and report back the reachability to the notifier.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(streamer p2p.Pinger, notifier p2p.ReachableNotifier, o *Options) *reacher

Types

type Options

type Options struct {
	PingTimeout        time.Duration
	PingMaxAttempts    int
	Workers            int
	RetryAfterDuration time.Duration
}

Jump to

Keyboard shortcuts

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