Registry / messaging / shopify-sarama

shopify-sarama

JSON →
library1.50.2gogounverified

A pure Go client library for Apache Kafka, supporting versions 0.8 and later.

go get github.com/Shopify/sarama
INSTALL
IMPORT
SIG · SHOPIFY-SARAMA
S
shopify-sarama
messaginggov1.50.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

sarama
github.com/Shopify/sarama

Creates a Kafka consumer and connects to a broker.

package main import ( "fmt" "github.com/Shopify/sarama" ) func main() { consumer, err := sarama.NewConsumer([]string{"localhost:9092"}, nil) if err != nil { panic(err) } defer consumer.Close() fmt.Println("Connected to Kafka") }
Debug
Known issues
breakingSarama v1.x has breaking changes from v1.20+; check migration guides.
fix
Use the latest stable version and review changelog for API changes.
affects: <1.20.0
Upgrade
Version history
1.50.2latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
13 hits · last 30 days
node
12
OpenAI (training)
1
Resources
shopify-sarama — go get shopify-sarama · libregistry