MCPcopy Create free account

hub / github.com/aybabtme/tailf / functions

Functions29 in github.com/aybabtme/tailf

↓ 14 callersMethodClose
Close will remove the watch on the file. Subsequent reads to the file will eventually reach EOF.
tailf.go:104
↓ 8 callersFunctionwithTempFile
(t *testing.T, timeout time.Duration, action func(t *testing.T, filename string, file *os.File) error)
tailf_test.go:466
↓ 5 callersFunctionisOp
(ev fsnotify.Event, op fsnotify.Op)
tailf.go:372
↓ 4 callersMethodRead
(b []byte)
tailf.go:120
↓ 3 callersMethodreopenFile
()
tailf.go:245
↓ 1 callersMethodcheckForTruncate
Note: if the file gets truncated, and before the size can be stat'd, it has regrown to be >= the same size as previously, the truncate will be missed.
tailf.go:305
↓ 1 callersMethodfillFileBuffer
()
tailf.go:287
↓ 1 callersMethodfollowFile
()
tailf.go:177
↓ 1 callersMethodhandleFileEvent
(ev fsnotify.Event)
tailf.go:213
↓ 1 callersFunctionimin
(a, b int)
tailf.go:389
↓ 1 callersFunctionmakeTempFile
()
example/example.go:43
↓ 1 callersFunctionpathEqual
(lhs, rhs string)
tailf.go:376
↓ 1 callersMethodpollForChanges
This is here for situations where the directory the watched file sits in can't be inotified on
tailf.go:328
↓ 1 callersFunctionrandomDuration
(min, max time.Duration)
example/example.go:70
↓ 1 callersFunctionwriteSlowlyToFile
(f *os.File)
example/example.go:51
FunctionFollow
Follow returns an io.ReadCloser that follows the writes to a file.
tailf.go:54
FunctionTestCanFollowFile
(t *testing.T)
tailf_test.go:29
FunctionTestCanFollowFileFromEnd
(t *testing.T)
tailf_test.go:175
FunctionTestCanFollowFileOverwritten
(t *testing.T)
tailf_test.go:102
FunctionTestFollowRandomTruncation
Continually read from a file that is having data written to it every 5ms, and randomly truncated every [5,55]ms
tailf_test.go:286
FunctionTestFollowTruncation
(t *testing.T)
tailf_test.go:240
FunctionTestImpl
(t *testing.T)
tailf_test.go:20
FunctionTestPollingReader
Test to see that our polling
tailf_test.go:388
FunctionTestSpinningReader
Run for 50ms constantly trying to read from a tailf.follower that has nothing to read
tailf_test.go:340
FunctioncanFollowFile
(t *testing.T, filename string, file *os.File)
tailf_test.go:31
FunctioncanFollowFileFromEnd
(t *testing.T, filename string, file *os.File)
tailf_test.go:179
FunctioncanFollowFileOverwritten
(t *testing.T, filename string, file *os.File)
tailf_test.go:106
FunctioncanFollowTruncation
(t *testing.T, filename string, file *os.File)
tailf_test.go:242
Functionmain
()
example/example.go:13