diff options
| author | bndw <ben@bdw.to> | 2026-03-09 12:48:39 -0700 |
|---|---|---|
| committer | bndw <ben@bdw.to> | 2026-03-09 12:48:39 -0700 |
| commit | 0bd392e076e36c80a152abe00cbcd0bc9efedd9c (patch) | |
| tree | 2727cf8a030e675fa86082b56faf9fee4ddc45b1 /cmd/axon/go.mod | |
| parent | 2c1ec8f9e964c2e89eee900299db667d9a58db25 (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 'cmd/axon/go.mod')
| -rw-r--r-- | cmd/axon/go.mod | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/cmd/axon/go.mod b/cmd/axon/go.mod new file mode 100644 index 0000000..2f26fca --- /dev/null +++ b/cmd/axon/go.mod | |||
| @@ -0,0 +1,20 @@ | |||
| 1 | module axon/cli | ||
| 2 | |||
| 3 | go 1.25.5 | ||
| 4 | |||
| 5 | require ( | ||
| 6 | axon v0.0.0 | ||
| 7 | axon/relay v0.0.0 | ||
| 8 | github.com/vmihailenco/msgpack/v5 v5.4.1 | ||
| 9 | ) | ||
| 10 | |||
| 11 | require ( | ||
| 12 | github.com/vmihailenco/tagparser/v2 v2.0.0 // indirect | ||
| 13 | golang.org/x/crypto v0.48.0 // indirect | ||
| 14 | golang.org/x/sys v0.41.0 // indirect | ||
| 15 | ) | ||
| 16 | |||
| 17 | replace ( | ||
| 18 | axon => ../../ | ||
| 19 | axon/relay => ../../relay | ||
| 20 | ) | ||
