Commit b0f71432 authored by Brian Tiger Chow's avatar Brian Tiger Chow

refactor(core): distinguish repo.Repo components

parent 9d438843
...@@ -50,14 +50,16 @@ var log = eventlog.Logger("core") ...@@ -50,14 +50,16 @@ var log = eventlog.Logger("core")
type IpfsNode struct { type IpfsNode struct {
// Self // Self
Config *config.Config // the node's configuration Identity peer.ID // the local node's identity
Identity peer.ID // the local node's identity onlineMode bool // alternatively, offline
onlineMode bool // alternatively, offline
// Local node // TODO abstract as repo.Repo
Config *config.Config // the node's configuration
Datastore ds2.ThreadSafeDatastoreCloser // the local datastore Datastore ds2.ThreadSafeDatastoreCloser // the local datastore
Pinning pin.Pinner // the pinning manager
Mounts Mounts // current mount state, if any. // Local node
Pinning pin.Pinner // the pinning manager
Mounts Mounts // current mount state, if any.
// Services // Services
Peerstore peer.Peerstore // storage for other Peer instances Peerstore peer.Peerstore // storage for other Peer instances
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment