entity

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2023 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BandwidthDebugInfo

type BandwidthDebugInfo struct {
	Total      BandwidthInfo
	ByProtocol map[string]BandwidthInfo
}

Responses

type BandwidthInfo

type BandwidthInfo struct {
	TotalIn  string
	TotalOut string
	RateIn   string
	RateOut  string
}

Responses

type ConnectionsDebugInfo

type ConnectionsDebugInfo struct {
	ConnectedPeersCount  int
	OpenConnectionsCount int
	OpenStreamsCount     int64
	LastTrimAgo          string
}

Responses

type DhtDebugInfo

type DhtDebugInfo struct {
	RoutingTableSize int
	RoutingTable     []kbucket.PeerInfo
	Reachability     string
	ListenAddress    []string
	ObservedAddrs    []string
}

Responses

type GeneralDebugInfo

type GeneralDebugInfo struct {
	Version string
	Uptime  string
}

Responses

type P2pDebugInfo

type P2pDebugInfo struct {
	General     GeneralDebugInfo
	DHT         DhtDebugInfo
	Connections ConnectionsDebugInfo
	Peerstore   PeerstoreDebugInfo
	Bandwidth   BandwidthDebugInfo
}

Responses

type Peer

type Peer struct {
	IsConnected     bool
	UserAgent       string
	Bandwidth       BandwidthInfo
	ConnectionsInfo []p2p.ConnectionInfo
	LatencyMs       int64
	Protocols       []protocol.ID
	PeerstoreAddrs  []string
}

Responses

type PeerstoreDebugInfo

type PeerstoreDebugInfo struct {
	PeersWithAddrsCount int
	PeersWithKeysCount  int
	Peers               map[string]Peer
}

Responses

Jump to

Keyboard shortcuts

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