MCPcopy Create free account
hub / github.com/GoEdgeLab/EdgeNode / FileHeaders

Method FileHeaders

internal/utils/bfs/meta_file.go:288–292  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

286}
287
288func (this *MetaFile) FileHeaders() map[string]*LazyFileHeader {
289 this.mu.RLock()
290 defer this.mu.RUnlock()
291 return this.headerMap
292}
293
294func (this *MetaFile) ExistFile(hash string) bool {
295 this.mu.RLock()

Callers 1

TestMetaFile_FileHeadersFunction · 0.80

Calls 2

RLockMethod · 0.80
RUnlockMethod · 0.80

Tested by 1

TestMetaFile_FileHeadersFunction · 0.64