mirror of
https://github.com/mattermost/mattermost.git
synced 2026-02-03 20:40:00 -05:00
15 lines
354 B
Go
15 lines
354 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) (string, error)
|
|
Name() string
|
|
}
|