Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidMhType = errors.New("invalid multihash type") ErrIncompactibleCidVersion = errors.New("incompactible CID version") )
View Source
var (
ErrNoopExchgNotFound = errors.New("not found in noop exchange")
)
View Source
var ImportOpts importScope
Functions ¶
This section is empty.
Types ¶
type Builder ¶
type Builder struct {
// contains filtered or unexported fields
}
Builder builds a WriterTo from the given input source. The WriterTo can be used to output car format data to a io.Writer.
type DataImporter ¶
type DataImporter struct {
// contains filtered or unexported fields
}
DataImporter creates a new importer that imports data (can be byte slice, io.Reader or path from local file system) into in-memory dag service.
func NewDataImporter ¶
func NewDataImporter() *DataImporter
NewDataImporter creates a new DataImporter.
func (*DataImporter) Blockstore ¶
func (di *DataImporter) Blockstore() blockstore.Blockstore
func (*DataImporter) Import ¶
func (di *DataImporter) Import( ctx context.Context, input any, opts ...ImportOption, ) (cid.Cid, error)
Import imports the given input.
type ImportEvent ¶
type ImportOption ¶
type ImportOption func(*importOptions) error
Click to show internal directories.
Click to hide internal directories.