Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KafkaClient ¶
KafkaClient ...
func New ¶
func New(server string, groupID string, onMessageReceived onMessage) *KafkaClient
New creates broker object
func (*KafkaClient) ListenToTopic ¶
func (kc *KafkaClient) ListenToTopic(ctx context.Context, topic string)
ListenToTopic starts listening for the specified topic
func (*KafkaClient) ProduceToTopic ¶
ProduceToTopic Sends a message to the specified topic
Click to show internal directories.
Click to hide internal directories.