From b0f7143250a3387f23e2dc462b4aa4bd63fb846e Mon Sep 17 00:00:00 2001 From: Brian Tiger Chow Date: Sat, 10 Jan 2015 21:35:30 -0800 Subject: [PATCH] refactor(core): distinguish repo.Repo components --- core/core.go | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/core/core.go b/core/core.go index a7f19779c..a6906edaa 100644 --- a/core/core.go +++ b/core/core.go @@ -50,14 +50,16 @@ var log = eventlog.Logger("core") type IpfsNode struct { // Self - Config *config.Config // the node's configuration - Identity peer.ID // the local node's identity - onlineMode bool // alternatively, offline + Identity peer.ID // the local node's identity + onlineMode bool // alternatively, offline + + // TODO abstract as repo.Repo + Config *config.Config // the node's configuration + Datastore ds2.ThreadSafeDatastoreCloser // the local datastore // Local node - Datastore ds2.ThreadSafeDatastoreCloser // the local datastore - Pinning pin.Pinner // the pinning manager - Mounts Mounts // current mount state, if any. + Pinning pin.Pinner // the pinning manager + Mounts Mounts // current mount state, if any. // Services Peerstore peer.Peerstore // storage for other Peer instances