mirror of
https://github.com/mattermost/mattermost.git
synced 2026-06-11 20:07:34 +00:00
16 lines
373 B
Go
16 lines
373 B
Go
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
// See LICENSE.txt for license information.
|
|
|
|
package docextractor
|
|
|
|
import (
|
|
"io"
|
|
)
|
|
|
|
// Extractors define the interface needed to extract file content
|
|
type Extractor interface {
|
|
Match(filename string) bool
|
|
Extract(filename string, file io.ReadSeeker, maxFileSize int64) (string, error)
|
|
Name() string
|
|
}
|