kafka

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2024 License: MIT Imports: 2 Imported by: 4

Documentation

Overview

Package kafka package contains type definitions to describe the Apache Kafka transport in terms of Go-Kit abstractions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler interface {
	Handle(ctx context.Context, msg *Message) error
}

Handler is an interface for processing Kafka messages.

type Header struct {
	Key   []byte
	Value []byte
}

Header is a Kafka message object.

type Message

type Message struct {
	Topic     string
	Partition int32
	Offset    int64
	Key       []byte
	Value     []byte
	Headers   []Header
	Timestamp time.Time
}

Message is a Kafka message object.

Directories

Path Synopsis
Package tracing provides helpers and bindings for distributed tracing of Apache Kafka consumers and producers.
Package tracing provides helpers and bindings for distributed tracing of Apache Kafka consumers and producers.
opentracing
Package opentracing provides Go kit integration in term of transport layer for Apache Kafka to the OpenTracing project.
Package opentracing provides Go kit integration in term of transport layer for Apache Kafka to the OpenTracing project.
Package transport provides a Kafka transport abstraction.
Package transport provides a Kafka transport abstraction.

Jump to

Keyboard shortcuts

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