Documentation
¶
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 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