mockserver

command
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2026 License: MIT Imports: 11 Imported by: 0

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.

Jump to

Keyboard shortcuts

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