summaryrefslogtreecommitdiff
path: root/internal/fs/tailfile.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/fs/tailfile.go')
-rw-r--r--internal/fs/tailfile.go27
1 files changed, 0 insertions, 27 deletions
diff --git a/internal/fs/tailfile.go b/internal/fs/tailfile.go
deleted file mode 100644
index a19d4e6..0000000
--- a/internal/fs/tailfile.go
+++ /dev/null
@@ -1,27 +0,0 @@
-package fs
-
-import "sync"
-
-// TailFile is to tail and filter a log file.
-type TailFile struct {
- readFile
-}
-
-// NewTailFile returns a new file tailer.
-func NewTailFile(filePath string, globID string, serverMessages chan<- string, limiter chan struct{}) TailFile {
- var mutex sync.Mutex
-
- return TailFile{
- readFile: readFile{
- filePath: filePath,
- stop: make(chan struct{}),
- globID: globID,
- serverMessages: serverMessages,
- retry: true,
- canSkipLines: true,
- seekEOF: true,
- limiter: limiter,
- mutex: &mutex,
- },
- }
-}