Documentation ¶
Index ¶
- func Init()
- type ProducerManager
- func NewProducer(destination *backendconfig.DestinationT, o common.Opts) (*ProducerManager, error)
- func NewProducerForAzureEventHubs(destination *backendconfig.DestinationT, o common.Opts) (*ProducerManager, error)
- func NewProducerForConfluentCloud(destination *backendconfig.DestinationT, o common.Opts) (*ProducerManager, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ProducerManager ¶ added in v1.2.0
type ProducerManager struct {
// contains filtered or unexported fields
}
func NewProducer ¶
func NewProducer(destination *backendconfig.DestinationT, o common.Opts) (*ProducerManager, error)
NewProducer creates a producer based on destination config
func NewProducerForAzureEventHubs ¶
func NewProducerForAzureEventHubs(destination *backendconfig.DestinationT, o common.Opts) (*ProducerManager, error)
NewProducerForAzureEventHubs creates a producer for Azure event hub based on destination config
func NewProducerForConfluentCloud ¶
func NewProducerForConfluentCloud(destination *backendconfig.DestinationT, o common.Opts) (*ProducerManager, error)
NewProducerForConfluentCloud creates a producer for Confluent cloud based on destination config
func (*ProducerManager) Close ¶ added in v1.2.0
func (p *ProducerManager) Close() error
Close closes a given producer
func (*ProducerManager) Produce ¶ added in v1.2.0
func (p *ProducerManager) 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.