combiner

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Recombine

func Recombine(chunks []chunker.EncodedChunk, w io.Writer) error

Recombine recombines the chunks and writes it to an io.Writer

Types

type BatchCombiner

type BatchCombiner struct {
	// contains filtered or unexported fields
}

BatchCombiner struct

func NewBatchCombiner

func NewBatchCombiner(client transactor.ClientCaller) *BatchCombiner

NewBatchCombiner creates a new BatchCombiner struct

func (*BatchCombiner) GetAllChunks

func (bc *BatchCombiner) GetAllChunks(headChunkAddress string) ([]chunker.EncodedChunk, error)

GetAllChunks retrieves all chunks from the arweave network by using the address of the head chunk (the tip of the chunks) if the chunk at the address is not the head, it exits

Jump to

Keyboard shortcuts

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