Skip to content
This repository has been archived by the owner on Dec 7, 2019. It is now read-only.

SearchValue #25

Merged
merged 3 commits into from
Sep 24, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gx/lastpubver
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.5.0: QmdKS5YtmuSWKuLLgbHG176mS3VX3AKiyVmaaiAfvgcuch
2.6.0: QmaJ6QDUh7JKPPToaUZ4EtUsPBdrbSAG6zMTkzfEvZgz2j
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,6 @@
"license": "MIT",
"name": "go-libp2p-routing",
"releaseCmd": "git commit -a -m \"gx publish $VERSION\"",
"version": "2.5.0"
"version": "2.6.0"
}

6 changes: 4 additions & 2 deletions routing.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,16 @@ type ValueStore interface {
// GetValue searches for the value corresponding to given Key.
GetValue(context.Context, string, ...ropts.Option) ([]byte, error)

// TODO
// SearchValue searches for better and better values from this value
// store corresponding to the given Key. Implementations may halt the
// search after a period of time or may continue searching indefinitely.
//
// Useful when you want a result *now* but still want to hear about
// better/newer results.
//SearchValue(context.Context, string, ...ropts.Option) (<-chan []byte, error)
//
// Implementations of this methods won't return ErrNotFound. When a value
// couldn't be found, the channel will get closed without passing any results
SearchValue(context.Context, string, ...ropts.Option) (<-chan []byte, error)
}

// IpfsRouting is the combination of different routing types that ipfs
Expand Down