RegisterExtractor registers a file extractor for a specific protocol
(extractor FileExtractor)
| 87 | |
| 88 | // RegisterExtractor registers a file extractor for a specific protocol |
| 89 | func RegisterExtractor(extractor FileExtractor) { |
| 90 | registry.mu.Lock() |
| 91 | defer registry.mu.Unlock() |
| 92 | registry.extractors[extractor.ProtocolName()] = extractor |
| 93 | } |
| 94 | |
| 95 | // GetExtractor retrieves a file extractor for the given protocol |
| 96 | func GetExtractor(protocol string) (FileExtractor, bool) { |