kafka

package
v0.0.0-...-f6b4a90 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 7, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewKafkaOutput

func NewKafkaOutput(content interface{}) (protocol.Output, error)

Types

type KafkaConfig

type KafkaConfig struct {
	Base   config.ConfigBase
	Broker string `yaml:"broker"`
	Topic  string `yaml:"topic"`
}

type KafkaOutput

type KafkaOutput struct {
	// contains filtered or unexported fields
}

func (*KafkaOutput) Run

func (output *KafkaOutput) Run()

func (*KafkaOutput) Send

func (output *KafkaOutput) Send(doc map[string]interface{})

func (*KafkaOutput) Stop

func (output *KafkaOutput) Stop()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL