Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConsumeHandler ¶
Attention: resouce conflict
type Consumer ¶
type Consumer struct { sync.Mutex PartitionConsumerList []sarama.PartitionConsumer // contains filtered or unexported fields }
func NewConsumer ¶
func (*Consumer) ConsumeTopic ¶
func (c *Consumer) ConsumeTopic(group, topic string, handler ConsumeHandler) error
type SyncProducer ¶
type SyncProducer struct {
// contains filtered or unexported fields
}
func NewSyncProducer ¶
func NewSyncProducer(kafkaUrl string) (*SyncProducer, error)
func (*SyncProducer) Close ¶
func (sp *SyncProducer) Close() error
func (*SyncProducer) SendMessage ¶
func (sp *SyncProducer) SendMessage(topic string, data []byte) error
Click to show internal directories.
Click to hide internal directories.