netstore

package
v0.6.3 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2021 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Overview

Package netstore provides an abstraction layer over the Swarm local storage layer that leverages connectivity with other peers in order to retrieve chunks from the network that cannot be found locally.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrRecoveryAttempt = errors.New("failed to retrieve chunk, recovery initiated")
)

Functions

func New

func New(s storage.Storer, validStamp func(swarm.Chunk, []byte) (swarm.Chunk, error), rcb recovery.Callback, r retrieval.Interface, logger logging.Logger) storage.Storer

New returns a new NetStore that wraps a given Storer.

Types

This section is empty.

Jump to

Keyboard shortcuts

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