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

Method PushConsumer

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

PushConsumer returns an interface to an existing push consumer, allowing processing of messages. If consumer does not exist, ErrConsumerNotFound is returned. It returns ErrNotPushConsumer if the consumer is not a push consumer (deliver subject is not set).

(ctx context.Context, consumer string)

Source from the content-addressed store, hash-verified

157 //
158 // It returns ErrNotPushConsumer if the consumer is not a push consumer (deliver subject is not set).
159 PushConsumer(ctx context.Context, consumer string) (PushConsumer, error)
160 }
161
162 RawStreamMsg struct {

Callers 11

TestConsumerInfoFunction · 0.65
TestJetStream_ConsumerFunction · 0.65
TestCreateConsumerFunction · 0.65
TestUpdateConsumerFunction · 0.65
TestConsumerFunction · 0.65
TestConsumerPushVsPullFunction · 0.65

Implementers 1

streamjetstream/stream.go

Calls

no outgoing calls

Tested by 11

TestConsumerInfoFunction · 0.52
TestJetStream_ConsumerFunction · 0.52
TestCreateConsumerFunction · 0.52
TestUpdateConsumerFunction · 0.52
TestConsumerFunction · 0.52
TestConsumerPushVsPullFunction · 0.52