diff options
| author | bndw <ben@bdw.to> | 2026-02-13 18:26:53 -0800 |
|---|---|---|
| committer | bndw <ben@bdw.to> | 2026-02-13 18:26:53 -0800 |
| commit | 83876eae868bd1e4fb6b9a823a6e8173919f290d (patch) | |
| tree | f754bcb8b10337db34f6f36ba3d094e53c1bb808 /go.mod | |
| parent | 3481c3273f8764bd0a0ab51183dc57f592fb616c (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.mod | 7 |
1 files changed, 4 insertions, 3 deletions
| @@ -11,6 +11,7 @@ require ( | |||
| 11 | ) | 11 | ) |
| 12 | 12 | ||
| 13 | require ( | 13 | require ( |
| 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 |
