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

Struct ConditionalLoader

component/loader.go:32–36  ·  view source on GitHub ↗

ConditionalLoader loads component definitions into a container only if their associated runtime conditions are satisfied.

Source from the content-addressed store, hash-verified

30// ConditionalLoader loads component definitions into a container
31// only if their associated runtime conditions are satisfied.
32type ConditionalLoader struct {
33 container Container
34 components []*Component
35 evaluator *conditionEvaluator
36}
37
38// NewConditionalLoader creates a ConditionalLoader with the given container and components.
39func NewConditionalLoader(container Container, components []*Component) *ConditionalLoader {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected