MCPcopy
hub / github.com/dreadl0ck/netcap / GetExtractor

Function GetExtractor

decoder/stream/file/framework.go:96–101  ·  view source on GitHub ↗

GetExtractor retrieves a file extractor for the given protocol

(protocol string)

Source from the content-addressed store, hash-verified

94
95// GetExtractor retrieves a file extractor for the given protocol
96func GetExtractor(protocol string) (FileExtractor, bool) {
97 registry.mu.RLock()
98 defer registry.mu.RUnlock()
99 extractor, ok := registry.extractors[protocol]
100 return extractor, ok
101}
102
103// ListExtractors returns a list of all registered protocol extractors
104func ListExtractors() []string {

Callers 8

readResponseMethod · 0.92
readRequestMethod · 0.92
ExtractDCCDataChannelFunction · 0.92
ParseFunction · 0.92
extractFileMethod · 0.92
ExtractDataChannelFunction · 0.92
TestRegisterExtractorFunction · 0.85

Calls

no outgoing calls

Tested by 2

TestRegisterExtractorFunction · 0.68