Registry / messaging / azure-go-amqp

azure-go-amqp

JSON →
library1.7.0gogounverified

Package amqp provides an AMQP 1.0 client implementation.

go get github.com/Azure/go-amqp
INSTALL
IMPORT
SIG · AZURE-GO-AMQP
A
azure-go-amqp
messaginggov1.7.0
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.

amqp
github.com/Azure/go-amqp

Connect to an AMQP 1.0 broker and receive a message.

package main import ( "context" "log" "github.com/Azure/go-amqp" ) func main() { conn, err := amqp.Dial(context.Background(), "amqp://guest:guest@localhost:5672/", nil) if err != nil { log.Fatal(err) } defer conn.Close() session, err := conn.NewSession(context.Background(), nil) if err != nil { log.Fatal(err) } receiver, err := session.NewReceiver(context.Background(), "queue-name", nil) if err != nil { log.Fatal(err) } msg, err := receiver.Receive(context.Background()) if err != nil { log.Fatal(err) } log.Printf("Message received: %s", msg.GetData()) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.7.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
15 hits · last 30 days
node
12
Amazon
1
OpenAI (training)
1
Resources
azure-go-amqp — go get azure-go-amqp · libregistry