Skip to content

v0.1.0

Choose a tag to compare

@dougbarrett dougbarrett released this 31 Jan 17:48
· 3 commits to main since this release

goproxy v0.1.0

HTTP mock proxy wrapper for Go development.

Install

go install github.com/dougbarrett/goproxy/cmd/goproxy@v0.1.0

Usage

goproxy init                    # Create .goproxy/ with sample config
goproxy go run ./cmd/app        # Wrap your app with the proxy

Features

  • Rule-based mocking — regex URL and body pattern matching from JSON config files
  • Catch-all — unmatched requests return a default mock response
  • UUID-scoped admin endpoints — /logs, /clear, /reload, /health
  • Session logging — timestamped NDJSON log files in .goproxy/logs/
  • Auto free port — no port configuration needed
  • Multi-config — load rules from multiple .goproxy/*.json files
  • Dynamic merge — request body fields merged into mock responses
  • Zero dependencies — pure Go standard library