go-kit-kafka

module
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: May 3, 2021 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/alebabai/go-kit-kafka

Golang import:

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

Usage

To use consumer/producer transport abstractions the following adapters for 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
examples
common module
confluent module
sarama module

Jump to

Keyboard shortcuts

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