AddConsumer adds a consumer to a stream. If the consumer already exists, and the configuration is the same, it will return the existing consumer. If the consumer already exists, and the configuration is different, it will return ErrConsumerNameAlreadyInUse.
(stream string, cfg *ConsumerConfig, opts ...JSOpt)
| 75 | // If the consumer already exists, and the configuration is different, it |
| 76 | // will return ErrConsumerNameAlreadyInUse. |
| 77 | AddConsumer(stream string, cfg *ConsumerConfig, opts ...JSOpt) (*ConsumerInfo, error) |
| 78 | |
| 79 | // UpdateConsumer updates an existing consumer. |
| 80 | UpdateConsumer(stream string, cfg *ConsumerConfig, opts ...JSOpt) (*ConsumerInfo, error) |
no outgoing calls