MCPcopy
hub / github.com/mattermost/mattermost / Extractor

Interface Extractor

server/platform/services/docextractor/interface.go:11–15  ·  view source on GitHub ↗

Extractors define the interface needed to extract file content

Source from the content-addressed store, hash-verified

9
10// Extractors define the interface needed to extract file content
11type Extractor interface {
12 Match(filename string) bool
13 Extract(filename string, file io.ReadSeeker, maxFileSize int64) (string, error)
14 Name() string
15}

Callers 13

ScanMethod · 0.65
contentTypeMatchesFunction · 0.65
ExtractMethod · 0.65
MatchMethod · 0.65
ExtractMethod · 0.65
ExtractMethod · 0.65
ExtractMethod · 0.65
extractWithTimeoutFunction · 0.65
ExtractMethod · 0.65
ExtractMethod · 0.65
ExtractMethod · 0.65

Implementers 11

mmPreviewExtractorserver/platform/services/docextractor/
archiveExtractorserver/platform/services/docextractor/
customTestPdfExtractorserver/platform/services/docextractor/
failingExtractorserver/platform/services/docextractor/
slowExtractorserver/platform/services/docextractor/
panickingExtractorserver/platform/services/docextractor/
blockingExtractorserver/platform/services/docextractor/
pdfExtractorserver/platform/services/docextractor/
documentExtractorserver/platform/services/docextractor/
combineExtractorserver/platform/services/docextractor/
plainExtractorserver/platform/services/docextractor/

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…