Sign inSign up

msales/transporter

By msales

•Updated almost 9 years ago

Kafka consumer REST proxy

Image
0

3.9K

msales/transporter repository overview

⁠The Transporter

Go Report Card Build Status Docker build GitHub release GitHub license

⁠Usage

Run the binary with the configuration options below

transporter server <CONFIG OPTIONS>

or run the docker container with the environment variables below

⁠Configuration

Transporter can be configured with command line flags and environment variables.

⁠Command Line Flags
FlagOptionsMultiple AllowedDescriptionEnvironment Variable
--log.leveldebug, info, warn, errorNoThe log level to use.TRANSPORTER_LOG_LEVEL
--statsNoThe stats dsn to connect toTRANSPORTER_STATS
--stats.tagsYesThe tags to attach to all metricsTRANSPORTER_STATS_TAGS
--portNoThe address to bind to for the http server.TRANSPORTER_PORT
--buffer.sizeNoThe size of each topics buffer.TRANSPORTER_BUFFER_SIZE
--kafka.brokersYesThe kafka seed brokers connect to. Format: 'ip:port'.TRANSPORTER_KAFKA_BROKERS
--kafka.group-idNoThe kafka group id to subscribe to.TRANSPORTER_KAFKA_GROUP_ID
--kafka.topicsYesThe kafka topics to subscribe to.TRANSPORTER_KAFKA_TOPICS
⁠Multi value environment variables

When using environment variables where multiple values are allowed, the values should be comma seperated. E.g. --kafka.topics=foo --kafka.topics=bar should become TRANSPORTER_KAFKA_TOPICS=foo,bar.

⁠HTTP Endpoints

⁠GET /health

Gets the current health status of Transporter. Returns a 200 status code if healthy, otherwise a 500 status code

⁠GET /:topic

Gets the next item in the topic queue. A timeout of 100ms is used when waiting for items in the queue. After the timeout a 204 status code is returned. If the topic does not exist, 404 status code is returned

⁠Contributors

We're supposed to tell you how to contribute to transporter here.
Since this is github: You know the drill - open issues, fork, create PRs, ...

⁠License

MIT-License. As is. No warranties whatsoever. Mileage may vary. Batteries not included.

Tag summary

Content type

Image

Digest

Size

2.5 MB

Last updated

almost 9 years ago

docker pull msales/transporter