Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Producer ¶
type Producer struct {
// contains filtered or unexported fields
}
Producer Struct
func NewProducer ¶
func NewProducer(logger *zap.Logger, config *sarama.Config, brokers []string, statsReporter metrics.StatsReporter, healthServer *health.Server) (*Producer, error)
Initialize The Producer
func (*Producer) ObserveMetrics ¶
Async Process For Observing Kafka Metrics
func (*Producer) ProduceKafkaMessage ¶
func (p *Producer) ProduceKafkaMessage(ctx context.Context, channelReference eventingChannel.ChannelReference, message binding.Message, transformers ...binding.Transformer) error
Produce A KafkaMessage From The Specified CloudEvent To The Specified Topic And Wait For The Delivery Report
func (*Producer) SecretChanged ¶ added in v0.21.0
SecretChanged is called by the secretObserver handler function in main() so that settings specific to the producer may be extracted and the producer restarted if necessary.
Click to show internal directories.
Click to hide internal directories.