-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add selector to BlockIO classes (#178)
* add selector to BlockIO classes * use ipld.Node and not selector.Selector as param * use ipld.Node and not selector.Selector as param
- Loading branch information
1 parent
6f76036
commit 473c5d1
Showing
9 changed files
with
58 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package retrievalimpl | ||
|
||
import ( | ||
"github.com/ipld/go-ipld-prime" | ||
ipldfree "github.com/ipld/go-ipld-prime/impl/free" | ||
"github.com/ipld/go-ipld-prime/traversal/selector" | ||
"github.com/ipld/go-ipld-prime/traversal/selector/builder" | ||
) | ||
|
||
func allSelector() ipld.Node { | ||
ssb := builder.NewSelectorSpecBuilder(ipldfree.NodeBuilder()) | ||
return ssb.ExploreRecursive(selector.RecursionLimitNone(), | ||
ssb.ExploreAll(ssb.ExploreRecursiveEdge())). | ||
Node() | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters