Documentation
¶
Overview ¶
- UDP: Listens on a UDP port for messages. Each packet is a separate message and thus the message length is limitted by the packet length (and maybe network MTU)
This package contains all the input modules responsible for generating events in the pipe.
- TCP: Listen on a TCP socket for messages. Each line is processed as a separate message. Maximum line length is 65000 bytes
- UDP: Listens on a UDP port for messages. Each packet is a separate message and thus the message length is limitted by the packet length (and maybe network MTU)
Index ¶
- func InterfaceToConfigMap(cfg interface{}) kafka.ConfigMap
- func NewKafkaCSVInput(inQ chan *core.Event, outQ chan *core.Event, cfg core.Config) core.Component
- func NewKafkaJSONInput(inQ chan *core.Event, outQ chan *core.Event, cfg core.Config) core.Component
- func NewKafkaRawInput(inQ chan *core.Event, outQ chan *core.Event, cfg core.Config) core.Component
- func NewKafkaStrInput(inQ chan *core.Event, outQ chan *core.Event, cfg core.Config) core.Component
- func NewTCPCSVInput(inQ chan *core.Event, outQ chan *core.Event, cfg core.Config) core.Component
- func NewTCPJSONInput(inQ chan *core.Event, outQ chan *core.Event, cfg core.Config) core.Component
- func NewTCPRawInput(inQ chan *core.Event, outQ chan *core.Event, cfg core.Config) core.Component
- func NewTCPStrInput(inQ chan *core.Event, outQ chan *core.Event, cfg core.Config) core.Component
- func NewUDPCSVInput(inQ chan *core.Event, outQ chan *core.Event, cfg core.Config) core.Component
- func NewUDPJSONInput(inQ chan *core.Event, outQ chan *core.Event, cfg core.Config) core.Component
- func NewUDPRawInput(inQ chan *core.Event, outQ chan *core.Event, cfg core.Config) core.Component
- func NewUDPStrInput(inQ chan *core.Event, outQ chan *core.Event, cfg core.Config) core.Component
- type KafkaCSVInput
- type KafkaJSONInput
- type KafkaRawInput
- type KafkaStrInput
- type TCPCSVInput
- type TCPJSONInput
- type TCPRawInput
- type TCPStrInput
- type UDPCSVInput
- type UDPJSONInput
- type UDPRawInput
- type UDPStrInput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InterfaceToConfigMap ¶
func NewKafkaCSVInput ¶
func NewKafkaJSONInput ¶
func NewKafkaRawInput ¶
func NewKafkaStrInput ¶
func NewTCPCSVInput ¶
func NewTCPJSONInput ¶
func NewTCPRawInput ¶
func NewTCPStrInput ¶
func NewUDPCSVInput ¶
func NewUDPJSONInput ¶
func NewUDPRawInput ¶
Types ¶
type KafkaJSONInput ¶
type KafkaJSONInput struct { *core.ComponentBase // Keep a referece to the struct responsible for decoding... Decoder core.LineCodec Kafka *kafka.Consumer }
The base structure for common UDP Ops
func (*KafkaJSONInput) Run ¶
func (p *KafkaJSONInput) Run()
func (*KafkaJSONInput) Signal ¶
func (p *KafkaJSONInput) Signal(string)
type TCPJSONInput ¶
type TCPJSONInput struct { *core.ComponentBase // Keep a referece to the struct responsible for decoding... Decoder core.LineCodec Sock net.Listener // contains filtered or unexported fields }
The base structure for common TCP Ops. The default implementation is using JSON message format
func (*TCPJSONInput) Run ¶
func (p *TCPJSONInput) Run()
func (*TCPJSONInput) Signal ¶
func (p *TCPJSONInput) Signal(string)
type UDPJSONInput ¶
type UDPJSONInput struct { *core.ComponentBase // Keep a referece to the struct responsible for decoding... Decoder core.LineCodec Sock net.PacketConn // contains filtered or unexported fields }
The base structure for common UDP Ops
func (*UDPJSONInput) Run ¶
func (p *UDPJSONInput) Run()
func (*UDPJSONInput) Signal ¶
func (p *UDPJSONInput) Signal(string)