Loader defines the interface responsible for loading registered components. It evaluates runtime conditions and only loads components that match.
| 22 | // Loader defines the interface responsible for loading registered components. |
| 23 | // It evaluates runtime conditions and only loads components that match. |
| 24 | type 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. |
nothing calls this directly
no outgoing calls
no test coverage detected