Snider
|
693dde08a9
|
feat: implement Section 19 — API remote streams primitive
c.API() manages remote streams to endpoints configured in c.Drive().
Stream interface (Send/Receive/Close) implemented by protocol handlers.
Consumer packages register handlers via c.API().RegisterProtocol().
- API struct with protocols Registry[StreamFactory]
- Stream interface — bidirectional, transport-agnostic
- c.API().Stream("name") — opens connection via Drive config
- c.API().Call("endpoint", "action", opts) — remote Action invocation
- c.RemoteAction("host:action", ctx, opts) — transparent local/remote dispatch
- extractScheme() parses transport URLs without net/url import
- 11 AX-7 tests with mock stream factory
Drive is the phone book. API is the phone.
Co-Authored-By: Virgil <virgil@lethean.io>
|
2026-03-25 16:21:04 +00:00 |
|