Documentation ¶
Index ¶
- func CloseProducer(ctx context.Context, pi interface{}) error
- func Init()
- func NewProducer(destConfigJSON interface{}, o Opts) (*producerImpl, error)
- func NewProducerForAzureEventHubs(destinationConfig interface{}, o Opts) (*producerImpl, error)
- func NewProducerForConfluentCloud(destinationConfig interface{}, o Opts) (*producerImpl, error)
- func Produce(jsonData json.RawMessage, pi interface{}, destConfig interface{}) (int, string, string)
- type Opts
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CloseProducer ¶
CloseProducer closes a given producer
func NewProducer ¶
NewProducer creates a producer based on destination config
func NewProducerForAzureEventHubs ¶
NewProducerForAzureEventHubs creates a producer for Azure event hub based on destination config
func NewProducerForConfluentCloud ¶
NewProducerForConfluentCloud creates a producer for Confluent cloud based on destination config
Types ¶
Click to show internal directories.
Click to hide internal directories.