event-viewer

command
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Command event-viewer is the worked client from the Protocol adoption track's build-a-client guide (docs/site/protocol/build-a-client.md). It is deliberately SDK-free: pure stdlib against the Harbor Protocol wire — the point is that the Protocol IS the integration surface, no Harbor Go import required. The guide quotes this file; the phase smoke compile-gates it so the listing cannot rot.

What it does, in order:

  1. Resolves a connection token — HARBOR_TOKEN if set, otherwise the loopback-only dev bootstrap endpoint (`harbor dev` only).
  2. Calls `runtime.info` and checks Protocol-version compatibility (same major) plus the `events_subscribe` capability.
  3. Opens the SSE event stream for one session and prints every frame: sequence, type, run, and the payload JSON.

Usage:

harbor dev &
go run ./examples/protocol-clients/event-viewer

Jump to

Keyboard shortcuts

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