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

SearchValue: redefine search behaviour #29

Merged
merged 1 commit into from
Sep 29, 2018
Merged
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
5 changes: 3 additions & 2 deletions routing.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,9 @@ type ValueStore interface {
GetValue(context.Context, string, ...ropts.Option) ([]byte, error)

// 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.
// store corresponding to the given Key. By default implementations must
// stop the search after a good value is found. A 'good' value is a value
// that would be returned from GetValue.
//
// Useful when you want a result *now* but still want to hear about
// better/newer results.
Expand Down