summaryrefslogtreecommitdiff
path: root/internal/fs/filereader.go
diff options
context:
space:
mode:
authorPaul Bütow <pbuetow@mimecast.com>2020-01-20 18:41:05 +0000
committerPaul Bütow <pbuetow@mimecast.com>2020-01-21 14:35:23 +0000
commitc128865c4c7411c29a59fca9a3a2f95537686d7b (patch)
tree193bccc70d942c8b70cc93fae2670263701e43aa /internal/fs/filereader.go
parent3755a9911ecb05886577095f2b8cc8b9e4066a3a (diff)
Move commands to cmd/ and move internal dependencies to internal/
Diffstat (limited to 'internal/fs/filereader.go')
-rw-r--r--internal/fs/filereader.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/internal/fs/filereader.go b/internal/fs/filereader.go
new file mode 100644
index 0000000..5a08e27
--- /dev/null
+++ b/internal/fs/filereader.go
@@ -0,0 +1,9 @@
+package fs
+
+// FileReader is the interface used on the dtail server to read/cat/grep/mapr... a file.
+type FileReader interface {
+ Start(lines chan<- LineRead, regex string) error
+ FilePath() string
+ Retry() bool
+ Stop()
+}