piecer

package
v0.0.0-...-269d6e4 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2022 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Piecer

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

Piecer provides a data-preparation pipeline for Batchs.

func New

func New(
	postgresURI string,
	ipfsEndpoints []multiaddr.Multiaddr,
	mb mbroker.MsgBroker,
	daemonFrequency time.Duration,
	retryDelay time.Duration,
	padToSize uint64) (*Piecer, error)

New returns a new Piecer.

func (*Piecer) Close

func (p *Piecer) Close() error

Close closes the piecer.

func (*Piecer) ReadyToPrepare

func (p *Piecer) ReadyToPrepare(ctx context.Context, sdID broker.BatchID, dataCid cid.Cid) error

ReadyToPrepare signals the Piecer that a new batch is ready to be prepared.

Jump to

Keyboard shortcuts

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