Documentation
¶
Overview ¶
Command mockserver runs a standalone HTTP server that serves canned NVD 2.0 CVE API JSON (from internal/mocknvd). It is used by the haybarn SQL end-to-end tests: the Makefile starts it on a free port, reads the printed PORT line, and points the worker's table functions at it via the base_url option.
Usage:
mockserver [--addr 127.0.0.1:0]
On startup it prints "PORT:<n>" (the bound TCP port) to stdout so a caller can discover the port even when binding to :0.
Click to show internal directories.
Click to hide internal directories.