Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IpfsNode ¶
type IpfsNode struct {
// the node's configuration
Config *config.Config
// the local node's identity
Identity *peer.Peer
// the book of other nodes (a map of Peer instances)
PeerBook *peer.PeerBook
// the local datastore
Datastore ds.Datastore
// the block service, get/add blocks.
Blocks *blocks.BlockService
// the merkle dag service, get/add objects.
DAG *merkledag.DAGService
// the path resolution system
Resolver *path.Resolver
}
IPFS Core module. It represents an IPFS instance.
func NewIpfsNode ¶
func NewIpfsNode(cfg *config.Config) (*IpfsNode, error)
Click to show internal directories.
Click to hide internal directories.