chunkstream

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: 19 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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCheck

func NewCheck(logger logging.Logger) beekeeper.Action

NewCheck returns new check

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 uploads chunks to one full node over /chunks/stream and downloads them from another full node over the same endpoint. It also checks uploads over several streams at the same time, a per-request batch, a bad request that must not end the stream, and a chunk that does not exist.

type Options

type Options struct {
	ChunkCount      int // CACs uploaded over the stream, in addition to one SOC
	ParallelStreams int // streams that upload ChunkCount CACs each at the same time
	PostageTTL      time.Duration
	PostageDepth    uint64
	PostageLabel    string
	RequestTimeout  time.Duration // per websocket read or write
	RetryCount      int           // download rounds for chunks reported as not found or unavailable
	RetryDelay      time.Duration
	Seed            int64
}

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