peerbus

command
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: May 20, 2026 License: MIT Imports: 16 Imported by: 0

Documentation

Overview

Command peerbus is the single multi-command binary for the peerbus project. It collapses the v0.1.0 cmd/peerbus-broker and cmd/peerbus-adapter into one git/kubectl-style dispatcher.

Subcommands (each preserves its v0.1.0 flag/env contract verbatim):

serve                       start the WebSocket broker (token auth + peer
                            registry + direct/broadcast routing, offline
                            queue, ack/redelivery). Was: peerbus-broker serve.
audit verify [--db PATH]    walk the blake3 hash-chain audit log and report
                            any break. Was: peerbus-broker audit verify.
adapter --adapter=<mode>    run the adapter (mode resolved through the
                            additive --adapter dispatch registry; today:
                            cc | generic). Was: peerbus-adapter --adapter=<mode>.

Top-level flags:

--version    print version and exit 0 (handled BEFORE subcommand parsing
             so `peerbus --version` works without a subcommand).
help, -h, --help  print the usage block listing the above subcommands.

Unknown subcommand → "peerbus: unknown command %q" on stderr, usage block, exit 2. Per-subcommand exit codes are preserved (e.g. audit verify still exits 0 intact / 1 break / 2 operational).

Jump to

Keyboard shortcuts

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