You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|**impl**| Runtime implementation | Bridges the Driver to the WASM host (processor WIT); internal use.|
35
+
|**bindings**| WIT bindings | Go code generated by wit-bindgen-go from `wit/processor.wit`; used by impl.|
36
36
37
37
Operators **only depend on fssdk**: implement `Driver` (or embed `BaseDriver`) and call `fssdk.Run(&YourProcessor{})` from `init()`.
38
38
@@ -44,16 +44,16 @@ Operators **only depend on fssdk**: implement `Driver` (or embed `BaseDriver`) a
44
44
45
45
All Go operators must implement the `fssdk.Driver` interface. The runtime invokes the following methods at the appropriate times:
46
46
47
-
| Method | When invoked | Description |
48
-
|--------|--------------|-------------|
49
-
|`Init(ctx, config)`| Once when the function starts | Initialize state, obtain Store, parse config. |
50
-
|`Process(ctx, sourceID, data)`| For each incoming message | Core logic: compute, state read/write, `ctx.Emit()`. |
51
-
|`ProcessWatermark(ctx, sourceID, watermark)`| On watermark events | Handle time-based windows or out-of-order logic; may forward via `EmitWatermark`. |
52
-
|`TakeCheckpoint(ctx, checkpointID)`| When the system backs up state | Persist extra in-memory state for strong consistency. |
53
-
|`CheckHeartbeat(ctx)`| Periodic health check | Return `false` to trigger operator restart. |
54
-
|`Close(ctx)`| When the function shuts down | Release resources and clear references. |
|`Init(ctx, config)`| Once when the function starts | Initialize state, obtain Store, parse config.|
50
+
|`Process(ctx, sourceID, data)`| For each incoming message | Core logic: compute, state read/write, `ctx.Emit()`.|
51
+
|`ProcessWatermark(ctx, sourceID, watermark)`| On watermark events | Handle time-based windows or out-of-order logic; may forward via `EmitWatermark`. |
52
+
|`TakeCheckpoint(ctx, checkpointID)`| When the system backs up state | Persist extra in-memory state for strong consistency.|
53
+
|`CheckHeartbeat(ctx)`| Periodic health check | Return `false` to trigger operator restart.|
54
+
|`Close(ctx)`| When the function shuts down | Release resources and clear references.|
0 commit comments