mirror of
https://github.com/cloudreve/cloudreve.git
synced 2026-03-03 00:47:02 +00:00
16 lines
400 B
Go
16 lines
400 B
Go
package extractor
|
|
|
|
import (
|
|
"context"
|
|
"io"
|
|
)
|
|
|
|
// NoopExtractor is a no-op implementation of TextExtractor, used when text extraction is disabled.
|
|
type NoopExtractor struct{}
|
|
|
|
func (n *NoopExtractor) Exts() []string { return nil }
|
|
func (n *NoopExtractor) MaxFileSize() int64 { return 0 }
|
|
func (n *NoopExtractor) Extract(ctx context.Context, reader io.Reader) (string, error) {
|
|
return "", nil
|
|
}
|