bps

package
v0.39.0 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2026 License: BSD-3-Clause Imports: 26 Imported by: ? modules, 0 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

Overview

Package bps checks the BPS live stream end to end through the Bee API: a publisher signs updates on one node, a broker fans them out, and subscribers on other nodes receive and verify them. It covers what needs real nodes and real p2p streams; the broker's rules are covered by Bee's unit tests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCheck

func NewCheck(logger logging.Logger) beekeeper.Action

NewCheck returns a new check instance.

Types

type Check

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

Check instance.

func (*Check) Run

func (c *Check) Run(ctx context.Context, cluster orchestration.Cluster, opts any) error

Run publishes a live stream through a broker of the cluster and requires that:

  1. subscribers on other nodes receive every update, in order, before and after the publisher reconnects;
  2. a node that is not a broker refuses the join;
  3. once every socket is closed, the nodes hold no more bps goroutines and the broker no more cohorts than before;
  4. the nodes are still connected to the broker and no side has blocklisted the other.

Every step runs even when an earlier one fails, so one run reports them all.

type Options

type Options struct {
	Messages    int           // updates published before and after the publisher reconnects
	Seed        int64         // seed of the node selection
	StepTimeout time.Duration // bound on every single wait
}

Options represents check options

func NewDefaultOptions

func NewDefaultOptions() Options

NewDefaultOptions returns new default options

Jump to

Keyboard shortcuts

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