ipfscopy

package module
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2021 License: MIT Imports: 12 Imported by: 0

README

IPFS Copy

Migrate your IPFS data to Infura in 3 steps.

ipfs-copy is a migration tool for both existing Infura IPFS users and new users currently self-hosting their data that want to migrate to the new, more reliable, performant Infura IPFS service with all the latest features.

Migration steps:

License

MIT

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CalculateRateLimitDuration added in v1.2.0

func CalculateRateLimitDuration(maxReqsPerSec int) time.Duration

func PinCIDsFromFile

func PinCIDsFromFile(ctx context.Context, file io.ReadSeeker, workers int, maxReqsPerSec int, infuraShell *ipfsShell.Shell, failedPinsWriter ipfsPump.FailedBlocksWriter) (successPinsCount uint64, failedPinsCount uint64, err error)

PinCIDsFromFile will open the file, read a CID from each line separated by LB char and pin them in parallel with multiple workers via the pre-configured shell.

func PinCIDsFromSource

func PinCIDsFromSource(ctx context.Context, workers int, maxReqsPerSec int, hasSourceShellListStreaming bool, sourceShell *ipfsShell.Shell, infuraShell *ipfsShell.Shell, failedPinsWriter ipfsPump.FailedBlocksWriter) (successPinsCount uint64, failedPinsCount uint64, err error)

PinCIDsFromSource iterates over all pins, filters Recursive + Direct, and pins then in parallel with multiple workers via the pre-configured shell.

Types

This section is empty.

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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