joiner

package
v2.3.0-rc10 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: BSD-3-Clause Imports: 15 Imported by: 3

Documentation

Overview

Package joiner provides implementations of the file.Joiner interface

Index

Constants

This section is empty.

Variables

View Source
var ErrMalformedTrie = errors.New("malformed tree")

Functions

func New

func New(ctx context.Context, g storage.Getter, putter storage.Putter, address swarm.Address) (file.Joiner, int64, error)

New creates a new Joiner. A Joiner provides Read, Seek and Size functionalities.

func NewDecoderCache

func NewDecoderCache(g storage.Getter, p storage.Putter, conf getter.Config) *decoderCache

NewDecoderCache creates a new decoder cache

func NewJoiner

func NewJoiner(ctx context.Context, g storage.Getter, putter storage.Putter, address swarm.Address, rootChunk swarm.Chunk) (file.Joiner, int64, error)

NewJoiner creates a new Joiner with the already fetched root chunk. A Joiner provides Read, Seek and Size functionalities.

Types

This section is empty.

Jump to

Keyboard shortcuts

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