MCPcopy
hub / github.com/syncthing/syncthing / Finder

Interface Finder

lib/discover/discover.go:18–23  ·  view source on GitHub ↗

A Finder provides lookup services of some kind.

Source from the content-addressed store, hash-verified

16
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
23}
24
25type CacheEntry struct {
26 Addresses []string `json:"addresses"`

Callers 24

resolveDeviceAddrsMethod · 0.65
syncOwnershipMethod · 0.65
TestCopyOwnerFunction · 0.65
TestIssue5063Function · 0.65
lookupUserAndGroupFunction · 0.65
testLookupFunction · 0.65
LookupMethod · 0.65
TestGlobalAnnounceFunction · 0.65
ErrorMethod · 0.65
ChildErrorsMethod · 0.65
TestLocalInstanceIDFunction · 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

no test coverage detected