update README

This commit is contained in:
Sridhar Ratnakumar 2013-08-09 15:15:40 -07:00
parent fdc1517c8b
commit 277b98d6a1
2 changed files with 2 additions and 6 deletions

View File

@ -20,8 +20,3 @@ designed to work with log rotation tools.
go get github.com/ActiveState/tail/... go get github.com/ActiveState/tail/...
## TODO
* Arbitrary values for `Location`
* `Location` could be specified in both lines and bytes metrics.

View File

@ -24,6 +24,7 @@ type Line struct {
// log line itself. // log line itself.
} }
// SeekInfo represents arguments to `os.Seek`
type SeekInfo struct { type SeekInfo struct {
Offset int64 Offset int64
Whence int // os.SEEK_* Whence int // os.SEEK_*
@ -31,7 +32,7 @@ type SeekInfo struct {
// Config is used to specify how a file must be tailed. // Config is used to specify how a file must be tailed.
type Config struct { 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) Follow bool // Continue looking for new lines (tail -f)
ReOpen bool // Reopen recreated files (tail -F) ReOpen bool // Reopen recreated files (tail -F)
MustExist bool // Fail early if the file does not exist MustExist bool // Fail early if the file does not exist