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

Method GetMsg

jsm.go:57–57  ·  view source on GitHub ↗

GetMsg retrieves a raw stream message stored in JetStream by sequence number. Use options nats.DirectGet() or nats.DirectGetNext() to trigger retrieval directly from a distributed group of servers (leader and replicas). The stream must have been created/updated with the AllowDirect boolean.

(name string, seq uint64, opts ...JSOpt)

Source from the content-addressed store, hash-verified

55 // directly from a distributed group of servers (leader and replicas).
56 // The stream must have been created/updated with the AllowDirect boolean.
57 GetMsg(name string, seq uint64, opts ...JSOpt) (*RawStreamMsg, error)
58
59 // GetLastMsg retrieves the last raw stream message stored in JetStream by subject.
60 // Use option nats.DirectGet() to trigger retrieval

Callers 7

getMethod · 0.65
TestPublishWithTTLFunction · 0.65
TestPublishAsyncWithTTLFunction · 0.65

Implementers 1

jsjs.go

Calls

no outgoing calls

Tested by 6

TestPublishWithTTLFunction · 0.52
TestPublishAsyncWithTTLFunction · 0.52