MCPcopy Create free account
hub / github.com/codnect/procyon / Scope

Method Scope

component/container.go:467–476  ·  view source on GitHub ↗

Scope retrieves the scope associated with the given name. Returns the scope and a boolean indicating its existence.

(name string)

Source from the content-addressed store, hash-verified

465// Scope retrieves the scope associated with the given name.
466// Returns the scope and a boolean indicating its existence.
467func (d *DefaultContainer) Scope(name string) (Scope, bool) {
468 d.muScopes.Lock()
469 defer d.muScopes.Unlock()
470
471 if scope, ok := d.scopes[name]; ok {
472 return scope, true
473 }
474
475 return nil, false
476}
477
478// UsePreProcessor registers a PreProcessor to be applied before initialization.
479func (d *DefaultContainer) UsePreProcessor(processor PreProcessor) error {

Callers 2

ResolveMethod · 0.95

Calls

no outgoing calls

Tested by 1