MCPcopy
hub / github.com/nats-io/nats.go / Publish

Method Publish

jetstream/jetstream.go:74–74  ·  view source on GitHub ↗

Publish performs a synchronous publish to a stream and waits for ack from server. It accepts subject name (which must be bound to a stream) and message payload.

(ctx context.Context, subject string, payload []byte, opts ...PublishOpt)

Source from the content-addressed store, hash-verified

72 // from server. It accepts subject name (which must be bound to a stream)
73 // and message payload.
74 Publish(ctx context.Context, subject string, payload []byte, opts ...PublishOpt) (*PubAck, error)
75
76 // PublishMsg performs a synchronous publish to a stream and waits for
77 // ack from server. It accepts subject name (which must be bound to a

Callers 15

ackReplyMethod · 0.65
PutMethod · 0.65
TestConsumerOverflowFunction · 0.65
TestConsumerPinnedFunction · 0.65
TestConsumerUnpinFunction · 0.65
TestConsumerPrioritizedFunction · 0.65
TestMessageDetailsFunction · 0.65
TestAckVariantsFunction · 0.65
TestPushConsumerConsumeFunction · 0.65
TestPublishWithTTLFunction · 0.65

Implementers 2

jsjs.go
jetStreamjetstream/jetstream.go

Calls

no outgoing calls

Tested by 15

TestConsumerOverflowFunction · 0.52
TestConsumerPinnedFunction · 0.52
TestConsumerUnpinFunction · 0.52
TestConsumerPrioritizedFunction · 0.52
TestMessageDetailsFunction · 0.52
TestAckVariantsFunction · 0.52
TestPushConsumerConsumeFunction · 0.52
TestPublishWithTTLFunction · 0.52
TestPublishFunction · 0.52