Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct { Producer // contains filtered or unexported fields }
func New ¶
func New(c sk.ProducerConfig, options ...OptionFunc) (*Handler, error)
New creates a new kafka producer
type OptionFunc ¶
func WithLogger ¶
func WithLogger(log Logger) OptionFunc
type SimpleKafkaGoProducer ¶
type SimpleKafkaGoProducer struct { Writer // contains filtered or unexported fields }
func (*SimpleKafkaGoProducer) SendWithKey ¶
func (p *SimpleKafkaGoProducer) SendWithKey(topic string, key, value []byte) error
Click to show internal directories.
Click to hide internal directories.