MCPcopy Index your code
hub / github.com/syncthing/syncthing / IndexUpdate

Method IndexUpdate

lib/protocol/encryption.go:204–209  ·  view source on GitHub ↗
(ctx context.Context, idxUp *IndexUpdate)

Source from the content-addressed store, hash-verified

202}
203
204func (e encryptedConnection) IndexUpdate(ctx context.Context, idxUp *IndexUpdate) error {
205 if folderKey, ok := e.folderKeys.get(idxUp.Folder); ok {
206 encryptFileInfos(e.keyGen, idxUp.Files, folderKey)
207 }
208 return e.conn.IndexUpdate(ctx, idxUp)
209}
210
211func (e encryptedConnection) Request(ctx context.Context, req *Request) ([]byte, error) {
212 folderKey, ok := e.folderKeys.get(req.Folder)

Callers

nothing calls this directly

Calls 3

encryptFileInfosFunction · 0.85
getMethod · 0.65
IndexUpdateMethod · 0.65

Tested by

no test coverage detected