MCPcopy
hub / github.com/syncthing/syncthing / Lookup

Method Lookup

lib/discover/discover.go:19–19  ·  view source on GitHub ↗
(ctx context.Context, deviceID protocol.DeviceID)

Source from the content-addressed store, hash-verified

17// A Finder provides lookup services of some kind.
18type 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

Callers 13

resolveDeviceAddrsMethod · 0.65
syncOwnershipMethod · 0.65
TestCopyOwnerFunction · 0.65
TestIssue5063Function · 0.65
lookupUserAndGroupFunction · 0.65
testLookupFunction · 0.65
LookupMethod · 0.65
TestCacheUniqueFunction · 0.65
TestCacheSlowLookupFunction · 0.65
getSupportBundleMethod · 0.65
checkServerFunction · 0.65

Implementers 4

managerlib/discover/manager.go
fakeDiscoverylib/discover/cache_test.go
slowDiscoverylib/discover/cache_test.go
Managerlib/discover/mocks/manager.go

Calls

no outgoing calls

Tested by 5

TestCopyOwnerFunction · 0.52
TestIssue5063Function · 0.52
testLookupFunction · 0.52
TestCacheUniqueFunction · 0.52
TestCacheSlowLookupFunction · 0.52