From 0945da8dfefcbb723eecea0e5f4eafff63398253 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Paul=20B=C3=BCtow?= Date: Sun, 26 Jan 2020 11:26:53 +0000 Subject: Introduce drun command, refactor code to use context package --- internal/fs/tailfile.go | 27 --------------------------- 1 file changed, 27 deletions(-) delete mode 100644 internal/fs/tailfile.go (limited to 'internal/fs/tailfile.go') 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, - }, - } -} -- cgit v1.2.3