Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Plugin ¶
type Plugin struct {
plugins.BasePlugin
FlushInterval uint64 `json:"flushInterval" jsonschema:"description=Flush Interval in milliseconds (Default: 1000)"`
Rules []string `json:"rules" jsonschema:"rules for Twitter Stream"`
}
Plugin represents our plugin
func (*Plugin) Extract ¶
func (plugin *Plugin) Extract(req sdk.ExtractRequest, evt sdk.EventReader) error
Extract allows Falco plugin framework to get values for all available fields
func (*Plugin) Fields ¶
func (plugin *Plugin) Fields() []sdk.FieldEntry
Fields exposes to Falco plugin framework all availables fields for this plugin
type StreamData ¶
type StreamData struct {
Data struct {
Text string `json:"text"`
ID string `json:"id"`
AuthorID string `json:"author_id"`
AuthorName string
AuthorUsername string
Lang string `json:"lang"`
CreatedAt time.Time `json:"created_at"`
} `json:"data"`
Includes struct {
Users []struct {
ID string `json:"id"`
Name string `json:"name"`
Username string `json:"username"`
} `json:"users"`
} `json:"includes"`
MatchingRules []struct {
ID string `json:"id"`
Tag string `json:"tag"`
} `json:"matching_rules"`
}
Click to show internal directories.
Click to hide internal directories.