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

Method OrderedConsumer

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

OrderedConsumer returns an OrderedConsumer instance. OrderedConsumer are managed by the library and provide a simple way to consume messages from a stream. Ordered consumers are ephemeral in-memory pull consumers and are resilient to deletes and restarts.

(ctx context.Context, cfg OrderedConsumerConfig)

Source from the content-addressed store, hash-verified

91 // messages from a stream. Ordered consumers are ephemeral in-memory
92 // pull consumers and are resilient to deletes and restarts.
93 OrderedConsumer(ctx context.Context, cfg OrderedConsumerConfig) (Consumer, error)
94
95 // Consumer returns an interface to an existing consumer, allowing processing
96 // of messages. If consumer does not exist, ErrConsumerNotFound is

Implementers 1

streamjetstream/stream.go

Calls

no outgoing calls