Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrChanClosedEmpty = errors.New("channel is closed or empty")
)
Functions ¶
This section is empty.
Types ¶
type PathInfo ¶
func (*PathInfo) ReadUntilEOF ¶
func (p *PathInfo) ReadUntilEOF()
type TailTracker ¶
type TailTracker struct {
// contains filtered or unexported fields
}
func NewTracker ¶
func NewTracker(dataDir string) (*TailTracker, error)
func (*TailTracker) AddFromParent ¶
func (t *TailTracker) AddFromParent(parent, name string) (*PathInfo, error)
func (*TailTracker) AddPath ¶
func (t *TailTracker) AddPath(path string, processor LineProcessor) (*PathInfo, error)
AddPath adds the given path to the set of watched paths. If the path is a directory, files included in that directory will be added to the watcher as they are updated/created.
Click to show internal directories.
Click to hide internal directories.