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 ¶
Types ¶
type Check ¶
type Check struct {
// contains filtered or unexported fields
}
Check instance.
func (*Check) Run ¶
Run publishes a live stream through a broker of the cluster and requires that:
- subscribers on other nodes receive every update, in order, before and after the publisher reconnects;
- a node that is not a broker refuses the join;
- once every socket is closed, the nodes hold no more bps goroutines and the broker no more cohorts than before;
- 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