ipfs

package
v1.0.1-test Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2022 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	DirectoryPath string
}

type IPFS

type IPFS interface {
	// AddFile will add data to a file and pin to IPFS to return it's CID
	AddFile(data []byte, name string, updatable bool) (string, error)

	// RetrieveFile will retrieve a file from IPFS
	RetrieveFile(cid string) ([]byte, error)

	// ListFiles will retrieve a list of files from IPFS
	ListFiles() ([]string, error)

	// Stop will stop IPFS
	Stop() error
}

func SetupIPFS

func SetupIPFS(cfg *Config) (IPFS, error)

Directories

Path Synopsis
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
ipfs
Package ipfs_mock is a generated GoMock package.
Package ipfs_mock is a generated GoMock package.
ipfs/path
Package resolved_mock is a generated GoMock package.
Package resolved_mock is a generated GoMock package.

Jump to

Keyboard shortcuts

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