ipfs

package
v0.0.11-alpha Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2020 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitIPFSBlockService

func InitIPFSBlockService(ipfsPath string) (blockservice.BlockService, error)

InitIPFSBlockService is used to configure and return a BlockService using an ipfs repo path (e.g. ~/.ipfs)

func InitIPFSPlugins

func InitIPFSPlugins() error

InitIPFSPlugins is used to initialized IPFS plugins before creating a new IPFS node This should only be called once

Types

type BlockModel

type BlockModel struct {
	CID  string `db:"key"`
	Data []byte `db:"data"`
}

type DagPutter

type DagPutter interface {
	DagPut(n ipld.Node) (string, error)
}

DagPutter is a general interface for a dag putter

type IPFS

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

func InitIPFSNode

func InitIPFSNode(repoPath string) (*IPFS, error)

func (IPFS) Add

func (ipfs IPFS) Add(node ipld.Node) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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