peer_monitor

package
v0.2.211 Latest Latest
Warning

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

Go to latest
Published: May 15, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Blacklist

type Blacklist struct {
	Size atomic.Int64
	// contains filtered or unexported fields
}

func (*Blacklist) Add

func (self *Blacklist) Add(peer string)

func (*Blacklist) Contains

func (self *Blacklist) Contains(peer string) bool

func (*Blacklist) RemoveOldest

func (self *Blacklist) RemoveOldest(n int)

type PeerMonitor

type PeerMonitor struct {
	*task.Task
	// contains filtered or unexported fields
}

func NewPeerMonitor

func NewPeerMonitor(config *config.Config) (self *PeerMonitor)

func (*PeerMonitor) WithClient

func (self *PeerMonitor) WithClient(client *arweave.Client) *PeerMonitor

func (*PeerMonitor) WithMonitor

func (self *PeerMonitor) WithMonitor(monitor monitoring.Monitor) *PeerMonitor

Jump to

Keyboard shortcuts

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