MCPcopy
hub / github.com/syncthing/syncthing / ID

Method ID

lib/nat/interface.go:31–31  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

29
30type Device interface {
31 ID() string
32 GetLocalIPv4Address() net.IP
33 AddPortMapping(ctx context.Context, protocol Protocol, internalPort, externalPort int, description string, duration time.Duration) (int, error)
34 AddPinhole(ctx context.Context, protocol Protocol, addr Address, duration time.Duration) ([]net.IP, error)

Callers 15

verifyExistingLockedMethod · 0.65
acquireNewLockedMethod · 0.65
tryNATDeviceMethod · 0.65
discoverAllFunction · 0.65
DiscoverFunction · 0.65
TestConflictsDefaultFunction · 0.65
checkRemoteInSyncFunction · 0.65
GenerateDeviceFileKeyMethod · 0.65
GenerateBlockMapKeyMethod · 0.65
GenerateNeedFileKeyMethod · 0.65

Implementers 2

wrapperlib/pmp/pmp.go
IGDServicelib/upnp/igd_service.go

Calls

no outgoing calls

Tested by 1

TestConflictsDefaultFunction · 0.52