ruby-kafka

https://github.com/zendesk/ruby-kafka

Ruby

A Ruby client library for Apache Kafka

Kafka::OffsetManager#seek_to_default

Move the consumer's position in the partition back to the configured default
offset, either the first or latest in the partition.

Source | Google | Stack overflow

Edit

git clone [email protected]:zendesk/ruby-kafka.git

cd ruby-kafka

open lib/kafka/offset_manager.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Kafka--OffsetManager-seek_to_default-for-pr


# Commit to git

git add lib/kafka/offset_manager.rbgit commit -m "better docs for Kafka::OffsetManager#seek_to_default"


# Open pull request

gem install hub # on a mac you can `brew install hub`

hub fork

git push <your name> -your-name--update-docs-Kafka--OffsetManager-seek_to_default-for-pr

hub pull-request


# Celebrate!