summaryrefslogtreecommitdiff
path: root/internal/fs/lineread.go
diff options
context:
space:
mode:
authorPaul Bütow <pbuetow@mimecast.com>2020-01-26 11:26:53 +0000
committerPaul Bütow <pbuetow@mimecast.com>2020-02-07 13:31:15 +0000
commit0945da8dfefcbb723eecea0e5f4eafff63398253 (patch)
treef06dab4d2bf21d25d176b23d5baeca588d27f5d7 /internal/fs/lineread.go
parent2a8e5de265a0e0a31a5834909d6879f5c9941467 (diff)
Introduce drun command, refactor code to use context package
Diffstat (limited to 'internal/fs/lineread.go')
-rw-r--r--internal/fs/lineread.go28
1 files changed, 0 insertions, 28 deletions
diff --git a/internal/fs/lineread.go b/internal/fs/lineread.go
deleted file mode 100644
index 7ee558e..0000000
--- a/internal/fs/lineread.go
+++ /dev/null
@@ -1,28 +0,0 @@
-package fs
-
-import (
- "fmt"
-)
-
-// LineRead represents a read log line.
-type LineRead struct {
- // The content of the log line.
- Content []byte
- // Until now, how many log lines were processed?
- Count uint64
- // Sometimes we produce too many log lines so that the client
- // is too slow to process all of them. The server will drop log
- // lines if that happens but it will signal to the client how
- // many log lines in % could be transmitted to the client.
- TransmittedPerc int
- GlobID *string
-}
-
-// Return a human readable representation of the followed line.
-func (l LineRead) String() string {
- return fmt.Sprintf("LineRead(Content:%s,TransmittedPerc:%v,Count:%v,GlobID:%s)",
- string(l.Content),
- l.TransmittedPerc,
- l.Count,
- *l.GlobID)
-}