Documentation
¶
Overview ¶
Package pinconv converts pins between the dag-based ldpinner and the datastore-based dspinner. Once conversion is complete, the pins from the source pinner are removed.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertPinsFromDSToLD ¶
func ConvertPinsFromDSToLD(ctx context.Context, dstore ds.Datastore, dserv ld.DAGService, internal ld.DAGService) (dms3pinner.Pinner, int, error)
ConvertPinsFromDSToLD converts the pins stored in the datastore by dspinner, into pins stored in the given internal DAGService by ldpinner. Returns an ldpinner loaded with the converted pins, and a count of the recursive and direct pins converted.
After the pins are stored in the DAGService, the pins and their indexes are removed from the dspinner.
func ConvertPinsFromLDToDS ¶
func ConvertPinsFromLDToDS(ctx context.Context, dstore ds.Datastore, dserv ld.DAGService, internal ld.DAGService) (dms3pinner.Pinner, int, error)
ConvertPinsFromLDToDS converts pins stored in mdag based storage to pins stores in the datastore. Returns a dspinner loaded with the converted pins, and a count of the recursive and direct pins converted.
After pins are stored in datastore, the root pin key is deleted to unlink the pin data in the DAGService.
Types ¶
This section is empty.