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

Method Consumer

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

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

(ctx context.Context, consumer string)

Source from the content-addressed store, hash-verified

98 //
99 // It returns ErrNotPullConsumer if the consumer is not a pull consumer (deliver subject is not set).
100 Consumer(ctx context.Context, consumer string) (Consumer, error)
101
102 // DeleteConsumer removes a consumer with given name from a stream.
103 // If consumer does not exist, ErrConsumerNotFound is returned.

Callers 15

TestConsumerInfoFunction · 0.65
TestConsumerPinnedFunction · 0.65
TestConsumerUnpinFunction · 0.65
TestConsumerPrioritizedFunction · 0.65
TestJetStream_ConsumerFunction · 0.65
TestCreateConsumerFunction · 0.65
TestUpdateConsumerFunction · 0.65

Implementers 1

streamjetstream/stream.go

Calls

no outgoing calls

Tested by 15

TestConsumerInfoFunction · 0.52
TestConsumerPinnedFunction · 0.52
TestConsumerUnpinFunction · 0.52
TestConsumerPrioritizedFunction · 0.52
TestJetStream_ConsumerFunction · 0.52
TestCreateConsumerFunction · 0.52
TestUpdateConsumerFunction · 0.52