Skip to content

partkyle/kafka-examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kafka-go-examples

Kafka Go examples

Installation

Install like a normal go package. There are no 3rd party dependencies.

go get github.com/partkyle/kafka-examples/consumer
go get github.com/partkyle/kafka-examples/producer

This should install the packages into your $GOPATH/bin directory.

Usage

Consumer:

[partkyle:~]$ consumer -h
Usage of consumer:
  -kafkas=[:2181]: kafka addresses to connect to
  -offset=0: offset to start reading from
  -partitions=[]: partitions to read from
  -show-offsets=false: show offset and exit
  -topic="": topic to read

Producer:

[partkyle:~]$ producer -h
Usage of producer:
  -kafka=":2181": kafka addr
  -key="": key to post message with
  -message="": message to post
  -topic="default": topic to post

About

Kafka Go examples

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages