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)
| 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. |
no outgoing calls