heartbeat

package
v0.0.0-...-ce9d6f3 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2021 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var HeartbeatEvery = 1 * time.Second

Functions

This section is empty.

Types

type HeartbeatService

type HeartbeatService struct {
	// contains filtered or unexported fields
}

func NewHeartbeat

func NewHeartbeat(ping *ping.PingService, p peer.ID, outCh chan PeerStatus) (*HeartbeatService, error)

func (*HeartbeatService) Close

func (h *HeartbeatService) Close()

type PeerStatus

type PeerStatus struct {
	Peer  peer.ID
	Alive bool
}

Jump to

Keyboard shortcuts

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