MCPcopy Create free account
hub / github.com/pydio/cells / GetQueuePool

Method GetQueuePool

common/runtime/manager/manager.go:400–410  ·  view source on GitHub ↗
(name string)

Source from the content-addressed store, hash-verified

398}
399
400func (m *manager) GetQueuePool(name string) (broker.AsyncQueuePool, error) {
401 item, err := m.internalRegistry.Get("queue-"+name, registry.WithType(pb.ItemType_GENERIC))
402 if err != nil {
403 return nil, errors.Wrap(err, "cannot get queue-"+name+" from registry")
404 }
405 var pool broker.AsyncQueuePool
406 if ok := item.As(&pool); !ok {
407 return nil, errors.New("wrong registry item format for queue-" + name)
408 }
409 return pool, nil
410}
411
412func (m *manager) GetCache(ctx context.Context, name string, resolutionData map[string]interface{}) (cache.Cache, error) {
413 item, err := m.internalRegistry.Get("cache-"+name, registry.WithType(pb.ItemType_GENERIC))

Callers 1

GetQueueMethod · 0.95

Calls 5

WithTypeFunction · 0.92
GetMethod · 0.65
AsMethod · 0.65
NewMethod · 0.65
WrapMethod · 0.45

Tested by

no test coverage detected