Registry / messaging / pubsub-natspubsub

pubsub-natspubsub

JSON →
library0.46.0gogounverified

A Go Cloud Development Kit (go-cloud) driver for publishing and subscribing to NATS topics.

go get gocloud.dev/pubsub/natspubsub
INSTALL
IMPORT
SIG · PUBSUB-NATSPUBSUB
P
pubsub-natspubsub
messaginggov0.46.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.

natspubsub
gocloud.dev/pubsub/natspubsub

Open a NATS topic for publishing messages.

package main import ( "context" "log" "gocloud.dev/pubsub/natspubsub" ) func main() { ctx := context.Background() topic, err := natspubsub.OpenTopic(ctx, "nats://localhost:4222", "my-topic", nil) if err != nil { log.Fatal(err) } defer topic.Shutdown(ctx) _ = topic }
Debug
Known issues

No known issues recorded.

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

No dependency data recorded yet.

Agent activity
20 hits · last 30 days
node
16
Amazon
1
OpenAI (training)
1
Resources
pubsub-natspubsub — go get pubsub-natspubsub · libregistry