Expand description
Plugin-fed streams (internal/pluginhost/stream_bridge.go).
executor.execute_stream hands the plugin a stream_id; the plugin pushes chunks
with host.stream.emit (blocking while 16 are queued) and ends with
host.stream.close, optionally with an error that becomes the final chunk. The host
side reads chunks asynchronously; dropping the reader aborts the stream so a pending
emit returns “stream is not open”.
Structs§
- Chunk
- One chunk (
pluginapi.ExecutorStreamChunk): a payload and, when set, an error that ends the stream after it. A plugin may send both in one emit. - Reader
- The reading side of one bridged stream. Dropping it aborts the stream.
- Stream
Bridge - Go
streamBridge.