network

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChangeSyncPeer

type ChangeSyncPeer struct {
	Peer peer.Peer
}

type InfoMessage

type InfoMessage any

type Network

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

func NewNetwork

func NewNetwork(
	services services.Services,
	p peer.Parent,
	obsolescence time.Duration,
	l *slog.Logger,
) (Network, <-chan InfoMessage)

func (*Network) Run

func (n *Network) Run(ctx context.Context)

func (*Network) SyncPeer

func (n *Network) SyncPeer() *SyncPeer

type StartMining

type StartMining struct{}

type StopMining

type StopMining struct{}

type StopSync

type StopSync struct{}

type SyncPeer

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

func (*SyncPeer) Clear

func (s *SyncPeer) Clear()

func (*SyncPeer) GetPeer

func (s *SyncPeer) GetPeer() peer.Peer

func (*SyncPeer) SetPeer

func (s *SyncPeer) SetPeer(peer peer.Peer)

Jump to

Keyboard shortcuts

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