retrievalstoremgr

package
v1.10.1-rc1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 2, 2021 License: Apache-2.0, MIT Imports: 8 Imported by: 0

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

NewStore creates a new store (just uses underlying blockstore)

func (*BlockstoreRetrievalStoreManager) ReleaseStore

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

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.BasicBlockstore) RetrievalStoreManager

NewBlockstoreRetrievalStoreManager returns a new blockstore based RetrievalStoreManager

func NewMultiStoreRetrievalStoreManager

func NewMultiStoreRetrievalStoreManager(imgr *importmgr.Mgr) RetrievalStoreManager

NewMultiStoreRetrievalStoreManager returns a new multstore based RetrievalStoreManager

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL