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

import (
	"context"

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

// 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, re regex.Regex) error
	FilePath() string
	Retry() bool
}