ipfs

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2022 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildStatsHandler

func BuildStatsHandler(db *database.DB, mailbox *mail.Mailbox) network.StreamHandler

Types

type Node

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

func CreateNode

func CreateNode(repoPath string, args NodeConfArgs) (node *Node, err error)

CreateNode creates an IPFS node and returns its coreAPI

func (*Node) SetHandler

func (n *Node) SetHandler(protocolID string, handler network.StreamHandler)

type NodeConfArgs

type NodeConfArgs struct {
	Addr           string
	PeerID         string
	PrivKey        string
	SwarmKey       string
	BootstrapPeers []string
}

Jump to

Keyboard shortcuts

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