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

Interface Loader

component/loader.go:24–28  ·  view source on GitHub ↗

Loader defines the interface responsible for loading registered components. It evaluates runtime conditions and only loads components that match.

Source from the content-addressed store, hash-verified

22// Loader defines the interface responsible for loading registered components.
23// It evaluates runtime conditions and only loads components that match.
24type Loader interface {
25 // Load evaluates each component's conditions and registers the eligible ones.
26 // Returns an error if the loading process fails.
27 Load(ctx context.Context) error
28}
29
30// ConditionalLoader loads component definitions into a container
31// only if their associated runtime conditions are satisfied.

Callers

nothing calls this directly

Implementers 3

ConditionalLoadercomponent/loader.go
YamlPropertySourceLoaderruntime/config/loader.go
StandardDataLoaderruntime/config/data.go

Calls

no outgoing calls

Tested by

no test coverage detected