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

Method AddGroup

micro/service.go:486–498  ·  view source on GitHub ↗
(name string, opts ...GroupOpt)

Source from the content-addressed store, hash-verified

484}
485
486func (s *service) AddGroup(name string, opts ...GroupOpt) Group {
487 var o groupOpts
488 for _, opt := range opts {
489 opt(&o)
490 }
491 queueGroup, noQueue := resolveQueueGroup(o.queueGroup, s.Config.QueueGroup, o.qgDisabled, s.Config.QueueGroupDisabled)
492 return &group{
493 service: s,
494 prefix: name,
495 queueGroup: queueGroup,
496 queueGroupDisabled: noQueue,
497 }
498}
499
500// dispatch is responsible for calling any async callbacks
501func (ac *asyncCallbacksHandler) run() {

Callers

nothing calls this directly

Calls 1

resolveQueueGroupFunction · 0.85

Tested by

no test coverage detected