peerstate

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: May 16, 2024 License: Apache-2.0, MIT Imports: 2 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PeerState

type PeerState struct {
	graphsync.RequestStates
	TaskQueueState
}

PeerState tracks the over all state of a given peer for either incoming or outgoing requests

func (PeerState) Diagnostics

func (ps PeerState) Diagnostics() map[graphsync.RequestID][]string

Diagnostics compares request states with the current state of the task queue to identify unexpected states or inconsistences between the tracked task queue and the tracked requests

type TaskQueueState

type TaskQueueState struct {
	Active  []graphsync.RequestID
	Pending []graphsync.RequestID
}

TaskQueueState describes the the set of requests for a given peer in a task queue

Jump to

Keyboard shortcuts

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