events

command
v1.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 18, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL