More separation for storage types in di modules
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
package dtypes
|
||||
|
||||
import (
|
||||
bserv "github.com/ipfs/go-blockservice"
|
||||
"github.com/ipfs/go-datastore"
|
||||
"github.com/ipfs/go-filestore"
|
||||
blockstore "github.com/ipfs/go-ipfs-blockstore"
|
||||
exchange "github.com/ipfs/go-ipfs-exchange-interface"
|
||||
ipld "github.com/ipfs/go-ipld-format"
|
||||
)
|
||||
|
||||
// MetadataDS stores metadata
|
||||
// dy default it's namespaced under /metadata in main repo datastore
|
||||
type MetadataDS datastore.Batching
|
||||
|
||||
type ChainBlockstore blockstore.Blockstore
|
||||
|
||||
type ChainGCLocker blockstore.GCLocker
|
||||
type ChainGCBlockstore blockstore.GCBlockstore
|
||||
type ChainExchange exchange.Interface
|
||||
type ChainBlockService bserv.BlockService
|
||||
|
||||
|
||||
type ClientFilestore *filestore.Filestore
|
||||
type ClientDAG ipld.DAGService
|
||||
Reference in New Issue
Block a user