summaryrefslogtreecommitdiff
path: root/internal/io/fs/filereader.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/io/fs/filereader.go')
-rw-r--r--internal/io/fs/filereader.go8
1 files changed, 6 insertions, 2 deletions
diff --git a/internal/io/fs/filereader.go b/internal/io/fs/filereader.go
index e27d2a7..7f36a29 100644
--- a/internal/io/fs/filereader.go
+++ b/internal/io/fs/filereader.go
@@ -9,9 +9,13 @@ import (
)
// FileReader is the interface used on the dtail server to read/cat/grep/mapr...
-// a file.
+// a file. Line delivery is processor-based (line.Processor); the historic
+// channel-based Start(chan<- *line.Line) method was removed once every read path
+// migrated to the processor pipeline (task iv0).
type FileReader interface {
- Start(ctx context.Context, ltx lcontext.LContext, lines chan<- *line.Line,
+ StartWithProcessor(ctx context.Context, ltx lcontext.LContext, processor line.Processor,
+ re regex.Regex) error
+ StartWithProcessorOptimized(ctx context.Context, ltx lcontext.LContext, processor line.Processor,
re regex.Regex) error
FilePath() string
Retry() bool