ipfsuploader

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: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IpfsUploader

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

IpfsUploader is an IPFS storage layer.

func New

func New(ipfsAPIMultiaddr string) (*IpfsUploader, error)

New returns a IpfsUploader.

func (*IpfsUploader) Store

func (iu *IpfsUploader) Store(ctx context.Context, r io.Reader) (cid.Cid, error)

Store persists and pins the io.Reader and returns the corresponding Cid.

Jump to

Keyboard shortcuts

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