diff options
| author | Paul Bütow <pbuetow@mimecast.com> | 2020-01-26 11:26:53 +0000 |
|---|---|---|
| committer | Paul Bütow <pbuetow@mimecast.com> | 2020-02-07 13:31:15 +0000 |
| commit | 0945da8dfefcbb723eecea0e5f4eafff63398253 (patch) | |
| tree | f06dab4d2bf21d25d176b23d5baeca588d27f5d7 /internal/fs/tailfile.go | |
| parent | 2a8e5de265a0e0a31a5834909d6879f5c9941467 (diff) | |
Introduce drun command, refactor code to use context package
Diffstat (limited to 'internal/fs/tailfile.go')
| -rw-r--r-- | internal/fs/tailfile.go | 27 |
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, - }, - } -} |
