replicas

package
v2.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Overview

the code below implements the integration of dispersed replicas in chunk fetching. using storage.Getter interface.

the code below implements the integration of dispersed replicas in chunk upload. using storage.Putter interface.

Package replicas implements a scheme to replicate chunks in such a way that - the replicas are optimally dispersed to aid cross-neighbourhood redundancy - the replicas addresses can be deduced by retrievers only knowing the address of the original content addressed chunk - no new chunk validation rules are introduced

Index

Constants

This section is empty.

Variables

View Source
var ErrSwarmageddon = errors.New("swarmageddon has begun")

ErrSwarmageddon is returned in case of a vis mayor called Swarmageddon. Swarmageddon is the situation when none of the replicas can be retrieved. If 2^{depth} replicas were uploaded and they all have valid postage stamps then the probability of Swarmageddon is less than 0.000001 assuming the error rate of chunk retrievals stays below the level expressed as depth by the publisher.

View Source
var (
	// RetryInterval is the duration between successive additional requests
	RetryInterval = 300 * time.Millisecond
)

Functions

func NewGetter

func NewGetter(g storage.Getter, level redundancy.Level) storage.Getter

NewGetter is the getter constructor

func NewPutter

func NewPutter(p storage.Putter) storage.Putter

NewPutter is the putter constructor

Types

This section is empty.

Jump to

Keyboard shortcuts

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