MCPcopy Index your code
hub / github.com/SignTools/SignTools / Add

Method Add

src/storage/upload_resolver.go:44–50  ·  view source on GitHub ↗
(id string)

Source from the content-addressed store, hash-verified

42}
43
44func (r *uploadResolver) Add(id string) Upload {
45 r.mu.Lock()
46 defer r.mu.Unlock()
47 upload := newUpload(id)
48 r.idToUploadMap[id] = upload
49 return upload
50}
51
52func (r *uploadResolver) Get(id string) (Upload, bool) {
53 r.mu.Lock()

Callers 5

addTusHandlersFunction · 0.80
getTweaksFunction · 0.80
writeFileResponseFunction · 0.80
CleanupMethod · 0.80
CleanupMethod · 0.80

Calls 1

newUploadFunction · 0.85

Tested by

no test coverage detected