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

Method getConsumerInfo

js.go:3507–3511  ·  view source on GitHub ↗
(stream, consumer string)

Source from the content-addressed store, hash-verified

3505}
3506
3507func (js *js) getConsumerInfo(stream, consumer string) (*ConsumerInfo, error) {
3508 ctx, cancel := context.WithTimeout(context.Background(), js.opts.wait)
3509 defer cancel()
3510 return js.getConsumerInfoContext(ctx, stream, consumer)
3511}
3512
3513func (js *js) getConsumerInfoContext(ctx context.Context, stream, consumer string) (*ConsumerInfo, error) {
3514 ccInfoSubj := fmt.Sprintf(apiConsumerInfoT, stream, consumer)

Callers 1

ConsumerInfoMethod · 0.80

Calls 1

Tested by

no test coverage detected