Documentation ¶
Index ¶
- func ConsumeClient(ctx context.Context, consumeFrom string) kafka.Reader
- func ConsumeClose()
- func InitKafkaConsumer(kafkaPath string) error
- func InitKafkaProducer(kafkaPath string) error
- func ProducerClient(ctx context.Context, producerTo string) kafka.Writer
- func ProducerClose()
- type Consumer
- type ConsumerConfig
- type GroupConsumer
- type Producer
- type ProductConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConsumeClose ¶
func ConsumeClose()
func InitKafkaConsumer ¶
func InitKafkaProducer ¶
func ProducerClose ¶
func ProducerClose()
Types ¶
type Consumer ¶
type Consumer struct {
// contains filtered or unexported fields
}
func InitConsumerProxy ¶
func (*Consumer) GetMessages ¶
type ConsumerConfig ¶
type GroupConsumer ¶
type GroupConsumer struct {
// contains filtered or unexported fields
}
func (*GroupConsumer) Cleanup ¶
func (consumer *GroupConsumer) Cleanup(_ sarama.ConsumerGroupSession) error
func (*GroupConsumer) ConsumeClaim ¶
func (consumer *GroupConsumer) ConsumeClaim(session sarama.ConsumerGroupSession, claim sarama.ConsumerGroupClaim) error
func (*GroupConsumer) Setup ¶
func (consumer *GroupConsumer) Setup(_ sarama.ConsumerGroupSession) error
type Producer ¶
type Producer struct {
// contains filtered or unexported fields
}
func InitProducerProxy ¶
func (*Producer) SendMessage ¶
Click to show internal directories.
Click to hide internal directories.