Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AsyncProducer ¶
type AsyncProducer struct {
// contains filtered or unexported fields
}
AsyncProducer defines a async Kafka producer.
func NewAsyncProducer ¶
func NewAsyncProducer(brokers []string) (*AsyncProducer, error)
NewAsyncProducer creates a new async producer with default configuration.
func (*AsyncProducer) Error ¶
func (ap *AsyncProducer) Error() <-chan error
Error returns a chanel to monitor for errors.
type Message ¶
type Message struct {
// contains filtered or unexported fields
}
Message abstraction of a Kafka message.
func NewJSONMessage ¶
NewJSONMessage creates a new message with a JSON encoded body.
Click to show internal directories.
Click to hide internal directories.