Help us shape the future of Go! Take the 2026 Go Developer Survey

mockserver

command
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Command mockserver runs a standalone in-memory feed server exposing a known RSS 2.0 feed at /rss, an Atom feed at /atom, a JSON Feed at /json, and a /malformed endpoint. 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 feed functions at it.

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