ipfs

package
v1.0.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IPFSClient

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

func NewIPFSClient

func NewIPFSClient(apiAddress, projectId, projectSecret string) *IPFSClient

func (*IPFSClient) DeleteFile

func (c *IPFSClient) DeleteFile(cid string) error

func (*IPFSClient) DownloadFile

func (c *IPFSClient) DownloadFile(cid string) ([]byte, error)

func (*IPFSClient) UploadFile

func (c *IPFSClient) UploadFile(data []byte) (string, error)

Jump to

Keyboard shortcuts

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