Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrInputNotRegistered is returned when attempting to create an unregistered Input. ErrInputNotRegistered = errors.New("Input doesn't exist") )
Functions ¶
This section is empty.
Types ¶
type FileInput ¶
type FileInput struct {
// contains filtered or unexported fields
}
A FileInput will read a file and optionally tail it. Each line is considered a separate event.
type Input ¶
type Input interface { // Start creates a go routine for the Input to run in. out is an Event // channel where the Input will send generated Events. Start(out chan<- *event.Event) error // Close allows graceful shutdown of an Input. Close() error }
An Input generates events to be processed.
Click to show internal directories.
Click to hide internal directories.