Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlockstoreRetrievalStoreManager ¶
type BlockstoreRetrievalStoreManager struct {
// contains filtered or unexported fields
}
BlockstoreRetrievalStoreManager manages a single blockstore as if it were multiple stores
func (*BlockstoreRetrievalStoreManager) NewStore ¶
func (brsm *BlockstoreRetrievalStoreManager) NewStore() (RetrievalStore, error)
NewStore creates a new store (just uses underlying blockstore)
func (*BlockstoreRetrievalStoreManager) ReleaseStore ¶
func (brsm *BlockstoreRetrievalStoreManager) ReleaseStore(RetrievalStore) error
ReleaseStore for this implementation does nothing
type MultiStoreRetrievalStoreManager ¶
type MultiStoreRetrievalStoreManager struct {
// contains filtered or unexported fields
}
MultiStoreRetrievalStoreManager manages stores on top of the import manager
func (*MultiStoreRetrievalStoreManager) NewStore ¶
func (mrsm *MultiStoreRetrievalStoreManager) NewStore() (RetrievalStore, error)
NewStore creates a new store (uses multistore)
func (*MultiStoreRetrievalStoreManager) ReleaseStore ¶
func (mrsm *MultiStoreRetrievalStoreManager) ReleaseStore(retrievalStore RetrievalStore) error
ReleaseStore releases a store (uses multistore remove)
type RetrievalStore ¶
type RetrievalStore interface { StoreID() *multistore.StoreID DAGService() ipldformat.DAGService }
RetrievalStore references a store for a retrieval deal which may or may not have a multistore ID associated with it
type RetrievalStoreManager ¶
type RetrievalStoreManager interface { NewStore() (RetrievalStore, error) ReleaseStore(RetrievalStore) error }
RetrievalStoreManager manages stores for retrieval deals, abstracting the underlying storage mechanism
func NewBlockstoreRetrievalStoreManager ¶
func NewBlockstoreRetrievalStoreManager(bs blockstore.Blockstore) RetrievalStoreManager
NewBlockstoreRetrievalStoreManager returns a new blockstore based RetrievalStoreManager
func NewMultiStoreRetrievalStoreManager ¶
func NewMultiStoreRetrievalStoreManager(imgr *importmgr.Mgr) RetrievalStoreManager
NewMultiStoreRetrievalStoreManager returns a new multstore based RetrievalStoreManager