examples

command
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

CertWatch Webhook Receiver — Example Server

A minimal HTTP server that receives webhook payloads from the CertWatch CLI, verifies HMAC-SHA256 signatures, and pretty-prints the results.

Usage:

go run receiver.go -secret <secret> [-port <port>]

Example:

# Terminal 1 — start the receiver
go run examples/receiver.go -secret abc123 -port 3000

# Terminal 2 — send payloads via CLI
certwatch-webhook-cli -secret abc123 -url http://localhost:3000/webhook

Zero dependencies — uses only Go standard library.

Jump to

Keyboard shortcuts

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