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" } ]
}
Click to show internal directories.
Click to hide internal directories.