Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/aybabtme/tailf
/ functions
Functions
29 in github.com/aybabtme/tailf
⨍
Functions
29
◇
Types & classes
3
↓ 14 callers
Method
Close
Close will remove the watch on the file. Subsequent reads to the file will eventually reach EOF.
tailf.go:104
↓ 8 callers
Function
withTempFile
(t *testing.T, timeout time.Duration, action func(t *testing.T, filename string, file *os.File) error)
tailf_test.go:466
↓ 5 callers
Function
isOp
(ev fsnotify.Event, op fsnotify.Op)
tailf.go:372
↓ 4 callers
Method
Read
(b []byte)
tailf.go:120
↓ 3 callers
Method
reopenFile
()
tailf.go:245
↓ 1 callers
Method
checkForTruncate
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 callers
Method
fillFileBuffer
()
tailf.go:287
↓ 1 callers
Method
followFile
()
tailf.go:177
↓ 1 callers
Method
handleFileEvent
(ev fsnotify.Event)
tailf.go:213
↓ 1 callers
Function
imin
(a, b int)
tailf.go:389
↓ 1 callers
Function
makeTempFile
()
example/example.go:43
↓ 1 callers
Function
pathEqual
(lhs, rhs string)
tailf.go:376
↓ 1 callers
Method
pollForChanges
This is here for situations where the directory the watched file sits in can't be inotified on
tailf.go:328
↓ 1 callers
Function
randomDuration
(min, max time.Duration)
example/example.go:70
↓ 1 callers
Function
writeSlowlyToFile
(f *os.File)
example/example.go:51
Function
Follow
Follow returns an io.ReadCloser that follows the writes to a file.
tailf.go:54
Function
TestCanFollowFile
(t *testing.T)
tailf_test.go:29
Function
TestCanFollowFileFromEnd
(t *testing.T)
tailf_test.go:175
Function
TestCanFollowFileOverwritten
(t *testing.T)
tailf_test.go:102
Function
TestFollowRandomTruncation
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
Function
TestFollowTruncation
(t *testing.T)
tailf_test.go:240
Function
TestImpl
(t *testing.T)
tailf_test.go:20
Function
TestPollingReader
Test to see that our polling
tailf_test.go:388
Function
TestSpinningReader
Run for 50ms constantly trying to read from a tailf.follower that has nothing to read
tailf_test.go:340
Function
canFollowFile
(t *testing.T, filename string, file *os.File)
tailf_test.go:31
Function
canFollowFileFromEnd
(t *testing.T, filename string, file *os.File)
tailf_test.go:179
Function
canFollowFileOverwritten
(t *testing.T, filename string, file *os.File)
tailf_test.go:106
Function
canFollowTruncation
(t *testing.T, filename string, file *os.File)
tailf_test.go:242
Function
main
()
example/example.go:13