Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Kafka ¶
type Kafka struct {
// contains filtered or unexported fields
}
func NewKafkaFromClient ¶
func (*Kafka) Close ¶
Close wait for outstanding messages to be delivered within given flush interval timeout.
func (*Kafka) ProduceBulk ¶
func (pr *Kafka) ProduceBulk(events []*pb.Event, connGroup string, deliveryChannel chan kafka.Event) error
ProduceBulk messages to kafka. Block until all messages are sent. Return array of error. Order of Errors is guaranteed. DeliveryChannel needs to be exclusive. DeliveryChannel is exposed for recyclability purpose.
func (*Kafka) ReportStats ¶
func (pr *Kafka) ReportStats()
type KafkaProducer ¶
type KafkaProducer interface { // ProduceBulk message to kafka. Block until all messages are sent. Return array of error. Order is not guaranteed. ProduceBulk(events []*pb.Event, connGroup string, deliveryChannel chan kafka.Event) error }
KafkaProducer Produce data to kafka synchronously
Click to show internal directories.
Click to hide internal directories.