Documentation ¶
Index ¶
Constants ¶
View Source
const BROKER_URL = "http://localhost:3000"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Consumer ¶
type Consumer struct { Offset int Topic string Partition int // contains filtered or unexported fields }
Consumers will contains their own offset that will tell them till wher they have already fetched the messages
func NewConsumer ¶
func NewConsumer(conig ConsumerConfig) *Consumer
NewConsumer will create a new consumer
func (*Consumer) ReadMessage ¶
func (*Consumer) SubscribeToTopic ¶
type ConsumerConfig ¶
type ConsumerConfig struct { }
Click to show internal directories.
Click to hide internal directories.