package
module
Version:
v0.1.1
Opens a new window with list of versions in this module.
Published: Oct 7, 2017
License: Apache-2.0
Opens a new window with license information.
Imports: 12
Opens a new window with list of imports.
Imported by: 1
Opens a new window with list of known importers.
README
¶
handler-kafka
Handler to push messages to kafka
Documentation
¶
type Payload struct {
Topic string
Data map[string]interface{}
}
type Plugin struct {
*qtypes_plugin.Plugin
}
func New(qChan qtypes_qchannel.QChan, cfg *config.Config, name string) (Plugin, error)
Connect creates a connection to InfluxDB
func (p *Plugin) PushToKafka(e interface{}) (err error)
Run fetches everything from the Data channel and flushes it to stdout
ToJSON creates JSON payload depending on the type of Event.
The Payload is placed in a map, in which the key defines the topic to push the payload to.
Source Files
¶
Directories
¶
cmd
|
|
|
|
Click to show internal directories.
Click to hide internal directories.