reacher

package
v2.2.0-rc3 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2024 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
	Workers            int
	RetryAfterDuration time.Duration
}

Jump to

Keyboard shortcuts

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