status

package
v2.8.3 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2026 License: BSD-3-Clause Imports: 12 Imported by: 4 modules, 3 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Metrics added in v2.6.0

type Metrics struct {
	UploadSpeed   prometheus.Histogram
	DownloadSpeed prometheus.Histogram
}

type Reserve

type Reserve interface {
	ReserveSize() int
	ReserveSizeWithinRadius() uint64
	StorageRadius() uint8
	CommittedDepth() uint8
}

Reserve defines the reserve storage related information required.

type Service

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

Service is the status service.

func NewService

func NewService(
	logger log.Logger,
	streamer p2p.Streamer,
	topology topologyDriver,
	beeMode string,
	chainState postage.ChainStateGetter,
	reserve Reserve,
	metricsRegistry *prometheus.Registry,
) *Service

NewService creates a new status service.

func (*Service) LocalSnapshot

func (s *Service) LocalSnapshot() (*Snapshot, error)

LocalSnapshot returns the current status snapshot of this node.

func (*Service) PeerSnapshot

func (s *Service) PeerSnapshot(ctx context.Context, peer swarm.Address) (*Snapshot, error)

PeerSnapshot sends request for status snapshot to the peer.

func (*Service) Protocol

func (s *Service) Protocol() p2p.ProtocolSpec

Protocol returns the protocol specification.

func (*Service) SetSync

func (s *Service) SetSync(sync SyncReporter)

type Snapshot

type Snapshot pb.Snapshot

Snapshot is the current snapshot of the system.

type SyncReporter

type SyncReporter interface {
	SyncRate() float64
}

SyncReporter defines the interface to report syncing rate.

Directories

Path Synopsis
internal
pb

Jump to

Keyboard shortcuts

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