Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type KafkaProducer ¶ added in v1.0.2
type KafkaProducer struct {
// contains filtered or unexported fields
}
func NewProducer ¶
func NewProducer(destConfigJSON interface{}, o common.Opts) (*KafkaProducer, error)
NewProducer creates a producer based on destination config
func NewProducerForAzureEventHubs ¶
func NewProducerForAzureEventHubs(destinationConfig interface{}, o common.Opts) (*KafkaProducer, error)
NewProducerForAzureEventHubs creates a producer for Azure event hub based on destination config
func NewProducerForConfluentCloud ¶
func NewProducerForConfluentCloud(destinationConfig interface{}, o common.Opts) (*KafkaProducer, error)
NewProducerForConfluentCloud creates a producer for Confluent cloud based on destination config
func (*KafkaProducer) Close ¶ added in v1.0.2
func (producer *KafkaProducer) Close() error
Close closes a given producer
func (*KafkaProducer) Produce ¶ added in v1.0.2
func (producer *KafkaProducer) Produce(jsonData json.RawMessage, destConfig interface{}) (int, string, string)
Produce creates a producer and send data to Kafka.
Click to show internal directories.
Click to hide internal directories.