refactor(core): distinguish repo.Repo components
Brian Tiger Chow committed
Jan 10, 2015 at 21:35 UTC
b0f7143250a3387f23e2dc462b4aa4bd63fb846e
1 file changed
+8
-6
core/core.go
+8
-6
@@ -50,14 +50,16 @@ var log = eventlog.Logger("core")
50
type IpfsNode struct {
51
52
// Self
53
- Config *config.Config // the node's configuration
54
- Identity peer.ID // the local node's identity
55
- onlineMode bool // alternatively, offline
53
+ Identity peer.ID // the local node's identity
54
+ onlineMode bool // alternatively, offline
55
57
- // Local node
56
+ // TODO abstract as repo.Repo
57
+ Config *config.Config // the node's configuration
58
Datastore ds2.ThreadSafeDatastoreCloser // the local datastore
59
- Pinning pin.Pinner // the pinning manager
60
- Mounts Mounts // current mount state, if any.
59
+
60
+ // Local node
61
+ Pinning pin.Pinner // the pinning manager
62
+ Mounts Mounts // current mount state, if any.
63
64
// Services
65
Peerstore peer.Peerstore // storage for other Peer instances