A Finder provides lookup services of some kind.
| 16 | |
| 17 | // A Finder provides lookup services of some kind. |
| 18 | type Finder interface { |
| 19 | Lookup(ctx context.Context, deviceID protocol.DeviceID) (address []string, err error) |
| 20 | Error() error |
| 21 | String() string |
| 22 | Cache() map[protocol.DeviceID]CacheEntry |
| 23 | } |
| 24 | |
| 25 | type CacheEntry struct { |
| 26 | Addresses []string `json:"addresses"` |
no outgoing calls
no test coverage detected