Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Producer ¶
type Producer interface { //Send sends a message to Kafka and returns an error if it fails. Send(topic string, key []byte, value []byte) error // SendAsync sends a message to Kafka asynchronously and returns an error if it fails. SendAsync(topic string, key []byte, value []byte) error // Close closes the producer. Close() error }
Producer interface defines the methods that can be used to produce messages to Kafka.
Click to show internal directories.
Click to hide internal directories.