Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseSource ¶
type BaseSource struct {
// contains filtered or unexported fields
}
BaseSource ...
type Metadata ¶
type Metadata struct { Name string Type reflect.Type CanHandle func(url model.SourceURL) bool Creator func(since *time.Time, sourceURL model.SourceURL) (*Source, error) ExampleURLs []string }
Metadata ...
type Source ¶
type Source interface { // Sigil represents the type of source in a single character. Sigil() rune // URL is the URL from which the events come. URL() model.SourceURL // Start collecting events. Start(wg *sync.WaitGroup, running func() bool, srcChan chan Event, snkChan chan model.SinkEvent, errChan chan Error) error }
Source of events. Responsible for ingest and conversion to the standard format.
Click to show internal directories.
Click to hide internal directories.