mirror of
https://github.com/ipfs/kubo.git
synced 2025-06-28 17:03:58 +08:00
refactor(core): distinguish repo.Repo components
This commit is contained in:
14
core/core.go
14
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
|
||||
|
Reference in New Issue
Block a user