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

Function WithScope

component/definition.go:152–157  ·  view source on GitHub ↗

WithScope sets a custom scope string for the component definition.

(scope string)

Source from the content-addressed store, hash-verified

150
151// WithScope sets a custom scope string for the component definition.
152func WithScope(scope string) DefinitionOption {
153 return func(def *Definition) error {
154 def.scope = scope
155 return nil
156 }
157}
158
159// AsSingleton marks the component definition to use singleton scope.
160func AsSingleton() DefinitionOption {

Callers 3

TestRegisterFunction · 0.85
TestMakeDefinitionFunction · 0.85

Calls

no outgoing calls

Tested by 3

TestRegisterFunction · 0.68
TestMakeDefinitionFunction · 0.68