google-pubsub-kafka-rest

command module
v0.0.0-...-4a159b7 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2016 License: Apache-2.0 Imports: 13 Imported by: 0

README

google-pubsub-kafka-rest

Implements the basic features in Confluent kafka rest but produces to Google PubSub

Why would I use this?

It is developed as an easy way to migrate for Kafka with the Confluent Kafka REST API to Google PubSub.

Configuration

Place a configuration file in /etc/pubsub_kafa_rest.json

{
	"JwtJsonKeyPath": "/tmp/key.json",
	"ProjectId": "your-project-123"
}

Place the Google IAM obtained service account JSON key in /tmp/key.json (or the path you specified in the config)

Examples

To send the string value "Hello" into the topic "test1" with cURL on localhost with default configs:

curl -XPOST --data '{"records":[{"value":"SGVsbG8="}]}' http://localhost:8082/topics/test1

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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