Documentation
¶
Overview ¶
Package file implements a Source backed by a tailed file with rotation support.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Name string
Path string
Replay bool // false = skip to end of file at start
MaxLineLen int // truncate longer lines before broadcast
}
Config holds the file source's runtime parameters.
type Source ¶
type Source struct {
// contains filtered or unexported fields
}
Source tails one file and fans out lines to subscribers.
func (*Source) Unsubscribe ¶
Unsubscribe removes a subscriber and closes its channel; used during daemon.Reload to drop rules that are no longer configured.
Click to show internal directories.
Click to hide internal directories.