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

FuncType AddDownloadWithIDFunc

internal/processing/manager.go:26–26  ·  view source on GitHub ↗

AddDownloadWithIDFunc preserves caller-chosen ids when a remote/UI layer already owns them.

func(string, string, string, []string, map[string]string, string, int64, bool) (string, error)

Source from the content-addressed store, hash-verified

24
25// AddDownloadWithIDFunc preserves caller-chosen ids when a remote/UI layer already owns them.
26type AddDownloadWithIDFunc func(string, string, string, []string, map[string]string, string, int64, bool) (string, error)
27
28// IsNameActiveFunc lets routing treat in-flight downloads as filename conflicts within a directory.
29type IsNameActiveFunc func(dir, name string) bool

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected