kubo/core/core.go
Juan Batiz-Benet 3b570d3f82 skeleton.
2014-06-26 01:14:26 -07:00

34 lines
741 B
Go

package core
// IPFS Core module. It represents an IPFS instance.
type IPFSNode struct {
// the local node's identity (a Peer instance)
Identity *peer.Peer
// the book of other nodes (a hashtable of Peer instances)
PeerBook *peerbook.PeerBook
// the local database (uses datastore)
Storage *storage.Storage
// the network message stream
Network *netmux.Netux
// the routing system. recommend ipfs-dht
Routing *routing.Routing
// the block exchange + strategy (bitswap)
BitSwap *bitswap.BitSwap
// the block service, get/add blocks.
Blocks *blocks.BlockService
// the path resolution system
Resolver *resolver.PathResolver
// the name system, resolves paths to hashes
Namesys *namesys.Namesys
}