MCPcopy
hub / github.com/syncthing/syncthing / newEncryptedConnection

Function newEncryptedConnection

lib/protocol/encryption.go:180–187  ·  view source on GitHub ↗
(ci ConnectionInfo, conn *rawConnection, folderKeys *folderKeyRegistry, keyGen *KeyGenerator)

Source from the content-addressed store, hash-verified

178}
179
180func newEncryptedConnection(ci ConnectionInfo, conn *rawConnection, folderKeys *folderKeyRegistry, keyGen *KeyGenerator) encryptedConnection {
181 return encryptedConnection{
182 ConnectionInfo: ci,
183 conn: conn,
184 folderKeys: folderKeys,
185 keyGen: keyGen,
186 }
187}
188
189func (e encryptedConnection) Start() {
190 e.conn.Start()

Callers 1

NewConnectionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected