MCPcopy Create free account
hub / github.com/MiloOweno/kernel-lab / loadCatchpointFileHeaderFromRelay

Function loadCatchpointFileHeaderFromRelay

cmd/catchpointdump/info.go:199–274  ·  view source on GitHub ↗

loadCatchpointFileHeaderFromRelay opens a streaming HTTP connection to the given relay for the given round, then scans the (possibly gzip) tar stream until it finds `content.json`, decodes the ledger.CatchpointFileHeader, and immediately closes the network connection (so we don't download the entire

(relay string, netName string, round int)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

info.goFile · 0.85

Calls 7

SetUserAgentHeaderFunction · 0.92
MakeWatchdogStreamReaderFunction · 0.92
DecodeFunction · 0.92
getCatchpointTarReaderFunction · 0.85
ErrorfMethod · 0.65
CloseMethod · 0.65
NextMethod · 0.65

Tested by

no test coverage detected