MCPcopy
hub / github.com/syncthing/syncthing / AddConnection

Method AddConnection

lib/connections/structs.go:232–232  ·  view source on GitHub ↗
(conn protocol.Connection, hello protocol.Hello)

Source from the content-addressed store, hash-verified

230type Model interface {
231 protocol.Model
232 AddConnection(conn protocol.Connection, hello protocol.Hello)
233 OnHello(protocol.DeviceID, net.Addr, protocol.Hello) error
234 DeviceStatistics() (map[protocol.DeviceID]stats.DeviceStatistics, error)
235}

Callers 11

handleHellosMethod · 0.65
newStateFunction · 0.65
BenchmarkRequestOutFunction · 0.65
TestDeviceRenameFunction · 0.65
TestAutoAcceptEncFunction · 0.65
TestConnCloseOnRestartFunction · 0.65
addFakeConnFunction · 0.65
sessionConnectionHandlerFunction · 0.65

Implementers 2

modellib/model/model.go
Modellib/model/mocks/model.go

Calls

no outgoing calls

Tested by 9

newStateFunction · 0.52
BenchmarkRequestOutFunction · 0.52
TestDeviceRenameFunction · 0.52
TestAutoAcceptEncFunction · 0.52
TestConnCloseOnRestartFunction · 0.52
addFakeConnFunction · 0.52