kafka

package
v0.0.0-...-6c6b626 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 12, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Copyright (c) 2023 Tiago Melo. All rights reserved. Use of this source code is governed by the MIT License that can be found in the LICENSE file.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Worker

type Worker struct {
	Msg   *kafka.Message
	Stats *stats.KafkaConsumerStats
	Db    *mongodb.MongoDb
	Log   *log.Logger
}

Worker represents a Kafka consumer worker.

func (*Worker) Work

func (c *Worker) Work(ctx context.Context)

Work processes the Kafka message and performs the necessary operations.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL