go-kit-kafka

module
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2022 License: MIT

README

go-kit-kafka

Apache Kafka integration module for go-kit

build version report coverage tag reference

Getting started

Go modules are supported.

Manual install:

go get -u github.com/SoftSwiss/go-kit-kafka

Golang import:

import "github.com/SoftSwiss/go-kit-kafka/kafka"

Usage

To use consumer/producer transport abstractions converters to the following types from the chosen Apache Kafka client library should be implemented:

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

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

Examples

Go to Examples.

Directories

Path Synopsis
Package kafka contains type definitions to describe Apache Kafka consumer/producer transport abstractions.
Package kafka contains type definitions to describe Apache Kafka consumer/producer transport abstractions.
tracing
Package tracing provides helpers and bindings for distributed tracing of kafka consumers and producers.
Package tracing provides helpers and bindings for distributed tracing of kafka consumers and producers.
tracing/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.
transport
Package transport provides a Kafka transport.
Package transport provides a Kafka transport.

Jump to

Keyboard shortcuts

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