@cryptotaxi247 / kubo / commits / f75f4a4b6

feat(routing) define routing.ErrNotFound

Brian Tiger Chow committed Oct 28, 2014 at 01:06 UTC f75f4a4b6d265918c756015e6c9518bb8af5a0bb
1 file changed +5
routing/routing.go
+5
@@ -1,12 +1,17 @@
1 package routing
2
3 import (
4 + "errors"
5 +
6 context "github.com/jbenet/go-ipfs/Godeps/_workspace/src/code.google.com/p/go.net/context"
7
8 peer "github.com/jbenet/go-ipfs/peer"
9 u "github.com/jbenet/go-ipfs/util"
10 )
11
12 +// ErrNotFound is returned when a search fails to find anything
13 +var ErrNotFound = errors.New("routing: key not found")
14 +
15 // IpfsRouting is the routing module interface
16 // It is implemented by things like DHTs, etc.
17 type IpfsRouting interface {