update README
This commit is contained in:
parent
fdc1517c8b
commit
277b98d6a1
|
@ -20,8 +20,3 @@ designed to work with log rotation tools.
|
|||
|
||||
go get github.com/ActiveState/tail/...
|
||||
|
||||
## TODO
|
||||
|
||||
* Arbitrary values for `Location`
|
||||
* `Location` could be specified in both lines and bytes metrics.
|
||||
|
||||
|
|
3
tail.go
3
tail.go
|
@ -24,6 +24,7 @@ type Line struct {
|
|||
// log line itself.
|
||||
}
|
||||
|
||||
// SeekInfo represents arguments to `os.Seek`
|
||||
type SeekInfo struct {
|
||||
Offset int64
|
||||
Whence int // os.SEEK_*
|
||||
|
@ -31,7 +32,7 @@ type SeekInfo struct {
|
|||
|
||||
// Config is used to specify how a file must be tailed.
|
||||
type Config struct {
|
||||
Location *SeekInfo // Seek before tailing
|
||||
Location *SeekInfo // Seek to this location before tailing
|
||||
Follow bool // Continue looking for new lines (tail -f)
|
||||
ReOpen bool // Reopen recreated files (tail -F)
|
||||
MustExist bool // Fail early if the file does not exist
|
||||
|
|
Loading…
Reference in New Issue