refactor(core): distinguish Online services
Brian Tiger Chow committed
Jan 10, 2015 at 21:33 UTC
9d438843bdd5e973a28cec525fa4e945174b75ed
1 file changed
+13
-11
core/core.go
+13
-11
@@ -52,7 +52,6 @@ type IpfsNode struct {
52
// Self
53
Config *config.Config // the node's configuration
54
Identity peer.ID // the local node's identity
55
- PrivateKey ic.PrivKey // the local node's private Key
55
onlineMode bool // alternatively, offline
56
57
// Local node
@@ -61,16 +60,19 @@ type IpfsNode struct {
60
Mounts Mounts // current mount state, if any.
61
62
// Services
64
- Peerstore peer.Peerstore // storage for other Peer instances
65
- PeerHost p2phost.Host // the network host (server+client)
66
- Routing routing.IpfsRouting // the routing system. recommend ipfs-dht
67
- Exchange exchange.Interface // the block exchange + strategy (bitswap)
68
- Blockstore bstore.Blockstore // the block store (lower level)
69
- Blocks *bserv.BlockService // the block service, get/add blocks.
70
- DAG merkledag.DAGService // the merkle dag service, get/add objects.
71
- Resolver *path.Resolver // the path resolution system
72
- Namesys namesys.NameSystem // the name system, resolves paths to hashes
73
- Diagnostics *diag.Diagnostics // the diagnostics service
63
+ Peerstore peer.Peerstore // storage for other Peer instances
64
+ Blockstore bstore.Blockstore // the block store (lower level)
65
+ Blocks *bserv.BlockService // the block service, get/add blocks.
66
+ DAG merkledag.DAGService // the merkle dag service, get/add objects.
67
+ Resolver *path.Resolver // the path resolution system
68
+
69
+ // Online
70
+ PrivateKey ic.PrivKey // the local node's private Key
71
+ PeerHost p2phost.Host // the network host (server+client)
72
+ Routing routing.IpfsRouting // the routing system. recommend ipfs-dht
73
+ Exchange exchange.Interface // the block exchange + strategy (bitswap)
74
+ Namesys namesys.NameSystem // the name system, resolves paths to hashes
75
+ Diagnostics *diag.Diagnostics // the diagnostics service
76
77
ctxgroup.ContextGroup
78