Documentation
¶
Overview ¶
Example events demonstrates iterating over the v1-compatible Importer.Watch and Exporter.WatchSessions event-only sequences. Consumers that must distinguish clean cancellation from subscription or source failure should use Importer.WatchWithErrors instead.
Usage:
go run ./examples/events
The program prints one JSON record per event for 30 seconds, then exits. On a machine with no attached ports and no accepted sessions, it simply blocks until the deadline — the point is to show the iterator shape, not to generate traffic.
Click to show internal directories.
Click to hide internal directories.