aboutsummaryrefslogtreecommitdiffstats
path: root/go.work
diff options
context:
space:
mode:
authorbndw <ben@bdw.to>2026-03-09 12:48:39 -0700
committerbndw <ben@bdw.to>2026-03-09 12:48:39 -0700
commit0bd392e076e36c80a152abe00cbcd0bc9efedd9c (patch)
tree2727cf8a030e675fa86082b56faf9fee4ddc45b1 /go.work
parent2c1ec8f9e964c2e89eee900299db667d9a58db25 (diff)
feat: add axon CLI for pub/sub; fix relay hijack context bug
- cmd/axon: new CLI module with keygen, pub, and req subcommands - keygen: generate Ed25519 keypair, print hex seed and pubkey - pub: sign and publish an event; accepts --kind, --content, --tag - req: query/stream events as JSON lines; accepts --kind, --author, --tag, --since, --until, --limit, --stream - key loaded from --key flag or AXON_KEY env var - relay/websocket: add Dial() for client-side WebSocket handshake (ws:// and wss://, RFC 6455 masking via client:true) - relay/server: fix broken-pipe on auth by switching hijacked conn goroutine from r.Context() to context.Background(); r.Context() is cancelled by net/http immediately after Hijack is called
Diffstat (limited to 'go.work')
-rw-r--r--go.work1
1 files changed, 1 insertions, 0 deletions
diff --git a/go.work b/go.work
index 47a23cd..09ca901 100644
--- a/go.work
+++ b/go.work
@@ -3,4 +3,5 @@ go 1.25.5
3use ( 3use (
4 . 4 .
5 ./relay 5 ./relay
6 ./cmd/axon
6) 7)