summaryrefslogtreecommitdiffstats
path: root/go.mod
diff options
context:
space:
mode:
authorbndw <ben@bdw.to>2026-02-13 18:26:53 -0800
committerbndw <ben@bdw.to>2026-02-13 18:26:53 -0800
commit83876eae868bd1e4fb6b9a823a6e8173919f290d (patch)
treef754bcb8b10337db34f6f36ba3d094e53c1bb808 /go.mod
parent3481c3273f8764bd0a0ab51183dc57f592fb616c (diff)
feat: add Connect (gRPC over HTTP/JSON) support
Connect integration: - Buf Connect codegen added to buf.gen.yaml - Connect handler wraps gRPC server - Serves on same port as WebSocket (:8080) - HTTP/2 with h2c for cleartext HTTP/2 Now serving THREE protocols: 1. gRPC (native) on :50051 - binary, high performance 2. Connect on :8080/nostr.v1.NostrRelay/* - HTTP/JSON, browser compatible 3. WebSocket on :8080/ - Nostr standard protocol All three protocols share: - Same storage layer - Same subscription manager - Same validation logic Browser-friendly! Call gRPC methods with fetch() or curl.
Diffstat (limited to 'go.mod')
-rw-r--r--go.mod7
1 files changed, 4 insertions, 3 deletions
diff --git a/go.mod b/go.mod
index 03667f7..a291cec 100644
--- a/go.mod
+++ b/go.mod
@@ -11,6 +11,7 @@ require (
11) 11)
12 12
13require ( 13require (
14 connectrpc.com/connect v1.19.1 // indirect
14 github.com/btcsuite/btcd/chaincfg/chainhash v1.0.1 // indirect 15 github.com/btcsuite/btcd/chaincfg/chainhash v1.0.1 // indirect
15 github.com/decred/dcrd/crypto/blake256 v1.0.0 // indirect 16 github.com/decred/dcrd/crypto/blake256 v1.0.0 // indirect
16 github.com/decred/dcrd/dcrec/secp256k1/v4 v4.0.1 // indirect 17 github.com/decred/dcrd/dcrec/secp256k1/v4 v4.0.1 // indirect
@@ -20,9 +21,9 @@ require (
20 github.com/ncruces/go-strftime v1.0.0 // indirect 21 github.com/ncruces/go-strftime v1.0.0 // indirect
21 github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec // indirect 22 github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec // indirect
22 golang.org/x/exp v0.0.0-20251023183803-a4bb9ffd2546 // indirect 23 golang.org/x/exp v0.0.0-20251023183803-a4bb9ffd2546 // indirect
23 golang.org/x/net v0.48.0 // indirect 24 golang.org/x/net v0.50.0 // indirect
24 golang.org/x/sys v0.39.0 // indirect 25 golang.org/x/sys v0.41.0 // indirect
25 golang.org/x/text v0.32.0 // indirect 26 golang.org/x/text v0.34.0 // indirect
26 google.golang.org/genproto/googleapis/rpc v0.0.0-20251202230838-ff82c1b0f217 // indirect 27 google.golang.org/genproto/googleapis/rpc v0.0.0-20251202230838-ff82c1b0f217 // indirect
27 modernc.org/libc v1.67.6 // indirect 28 modernc.org/libc v1.67.6 // indirect
28 modernc.org/mathutil v1.7.1 // indirect 29 modernc.org/mathutil v1.7.1 // indirect