mirror of
https://github.com/ipfs/kubo.git
synced 2025-06-30 01:52:26 +08:00
refactor(core): distinguish repo.Repo components
This commit is contained in:
@ -50,12 +50,14 @@ 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
|
||||||
|
|
||||||
|
// Local node
|
||||||
Pinning pin.Pinner // the pinning manager
|
Pinning pin.Pinner // the pinning manager
|
||||||
Mounts Mounts // current mount state, if any.
|
Mounts Mounts // current mount state, if any.
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user