Conversation
4beb551 to
73f5e58
Compare
Public API Surface ReviewHaving reviewed the public API additions in 1.
|
Allow libraries to register custom resource types via
Environment.RegisterResource. Resources are declared in YAML under
"{name}", constructed per-stream by the manager, and accessible to
components via Resources.AccessResource. Values implementing
io.Closer are closed on shutdown. Context aware Close is supported.
Demonstrates full lifecycle: registering a custom resource type (db_pools), referencing it from YAML config, accessing it from a processor via Resources.AccessResource, and verifying context-aware shutdown.
73f5e58 to
11ffbc8
Compare
|
Commits Review LGTM |
- RegisterResource now accepts *ConfigSpec instead of []*ConfigField, consistent with all other Register* methods - AccessResource renamed to AccessCustomResource with callback pattern matching AccessCache/AccessInput, keeping hot-reload door open - HasResource renamed to HasCustomResource to clarify scope
11ffbc8 to
6cafdd5
Compare
|
Commits Review LGTM |
Allow libraries to register custom resource types via
Environment.RegisterResource. Resources are declared in YAML under
"{name}", constructed per-stream by the manager, and accessible to
components via Resources.AccessResource. Values implementing
io.Closer are closed on shutdown. Context aware Close is supported.