summaryrefslogtreecommitdiff
path: root/internal/io/fs/filereader.go
blob: 05e58a1b6a5850bc1a7167f6b2f98d04373ca663 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
package fs

import (
	"context"

	"github.com/mimecast/dtail/internal/io/line"
)

// FileReader is the interface used on the dtail server to read/cat/grep/mapr... a file.
type FileReader interface {
	Start(ctx context.Context, lines chan<- line.Line, regex string) error
	FilePath() string
	Retry() bool
}