GetExtractor retrieves a file extractor for the given protocol
(protocol string)
| 94 | |
| 95 | // GetExtractor retrieves a file extractor for the given protocol |
| 96 | func 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 |
| 104 | func ListExtractors() []string { |
no outgoing calls