MCPcopy
hub / github.com/SurgeDM/Surge / FindDownloadByID

Method FindDownloadByID

internal/tui/model.go:587–594  ·  view source on GitHub ↗

FindDownloadByID finds a download by its ID

(id string)

Source from the content-addressed store, hash-verified

585
586// FindDownloadByID finds a download by its ID
587func (m *RootModel) FindDownloadByID(id string) *DownloadModel {
588 for _, d := range m.downloads {
589 if d.ID == id {
590 return d
591 }
592 }
593 return nil
594}
595
596// Helper to get downloads for the current tab
597func (m RootModel) getFilteredDownloads() []*DownloadModel {

Callers 7

updatePurgeConfirmMethod · 0.95
updateEventsMethod · 0.95
processProgressMsgMethod · 0.95
startDownloadMethod · 0.95
setSpeedLimitValueMethod · 0.95
viewPurgeConfirmMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected