cmd

command
v0.24.0 Latest Latest
Warning

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

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

Documentation

Overview

Command statuszmock runs the mock Block Node statusz REST server for daemon development and the UTM-VM traffic-shaper demo. It serves `statusz/inbound-clients` and `statusz/outbound-clients` from a JSON roster file that is re-read on every request, so editing the file changes what the daemon's poll loop sees on its next tick.

Usage:

go run ./internal/daemon/blocknode/statuszmock/cmd --addr :8080 --roster roster.json

The roster JSON shape is:

{
  "inbound":  [ { "remote": {"address":"10.10.1.0/24","port":"*"}, "category":"publisher" } ],
  "outbound": [ { "remote": {"address":"10.30.5.7","port":"43473"}, "category":"peer_bn" } ]
}

Jump to

Keyboard shortcuts

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