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

Method GetLastMsgForSubject

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

GetLastMsgForSubject retrieves the last raw stream message stored in JetStream on a given subject.

(ctx context.Context, subject string)

Source from the content-addressed store, hash-verified

50 // GetLastMsgForSubject retrieves the last raw stream message stored in
51 // JetStream on a given subject.
52 GetLastMsgForSubject(ctx context.Context, subject string) (*RawStreamMsg, error)
53
54 // DeleteMsg deletes a message from a stream.
55 // On the server, the message is marked as erased, but not overwritten.

Callers 6

getMethod · 0.65
GetInfoMethod · 0.65
WatchMethod · 0.65
TestGetLastMsgForSubjectFunction · 0.65

Implementers 1

streamjetstream/stream.go

Calls

no outgoing calls

Tested by 3

TestGetLastMsgForSubjectFunction · 0.52