consumer.go 166 B

12345678910
  1. package kafka
  2. type Consumer struct {
  3. client *Client
  4. topic string
  5. }
  6. func NewConsumer(client *Client, topic string) *Consumer {
  7. return &Consumer{client, topic}
  8. }