diff options
| author | bndw <ben@bdw.to> | 2026-02-14 08:21:01 -0800 |
|---|---|---|
| committer | bndw <ben@bdw.to> | 2026-02-14 08:21:01 -0800 |
| commit | 0406e24e1259e1a9adcd739da388dcca9ec8feba (patch) | |
| tree | a7a0d5b88ddbad604b18fe31a00db37d8ef307ef | |
| parent | 1527a7313ca46cd646737fb05c33908fba034df9 (diff) | |
refactor: rename project from nostr-grpc to muxstr
Update module path from northwest.io/nostr-grpc to northwest.io/muxstr.
This includes updating all Go imports, protobuf definitions, generated
files, and documentation.
29 files changed, 54 insertions, 62 deletions
| @@ -1,4 +1,4 @@ | |||
| 1 | # nostr-grpc | 1 | # muxstr |
| 2 | 2 | ||
| 3 | A high-performance Nostr relay with gRPC and WebSocket support. | 3 | A high-performance Nostr relay with gRPC and WebSocket support. |
| 4 | 4 | ||
diff --git a/api/nostr/v1/nostr.pb.go b/api/nostr/v1/nostr.pb.go index 04aa0fe..8e7390a 100644 --- a/api/nostr/v1/nostr.pb.go +++ b/api/nostr/v1/nostr.pb.go | |||
| @@ -1310,9 +1310,9 @@ const file_nostr_v1_nostr_proto_rawDesc = "" + | |||
| 1310 | "\bGetStats\x12\x0f.nostr.v1.Empty\x1a\x14.nostr.v1.RelayStats\x12;\n" + | 1310 | "\bGetStats\x12\x0f.nostr.v1.Empty\x1a\x14.nostr.v1.RelayStats\x12;\n" + |
| 1311 | "\x0eGetConnections\x12\x0f.nostr.v1.Empty\x1a\x18.nostr.v1.ConnectionList\x125\n" + | 1311 | "\x0eGetConnections\x12\x0f.nostr.v1.Empty\x1a\x18.nostr.v1.ConnectionList\x125\n" + |
| 1312 | "\fBanPublicKey\x12\x14.nostr.v1.BanRequest\x1a\x0f.nostr.v1.Empty\x129\n" + | 1312 | "\fBanPublicKey\x12\x14.nostr.v1.BanRequest\x1a\x0f.nostr.v1.Empty\x129\n" + |
| 1313 | "\x0eGetStorageInfo\x12\x0f.nostr.v1.Empty\x1a\x16.nostr.v1.StorageStatsB\x89\x01\n" + | 1313 | "\x0eGetStorageInfo\x12\x0f.nostr.v1.Empty\x1a\x16.nostr.v1.StorageStatsB\x85\x01\n" + |
| 1314 | "\fcom.nostr.v1B\n" + | 1314 | "\fcom.nostr.v1B\n" + |
| 1315 | "NostrProtoP\x01Z,northwest.io/nostr-grpc/api/nostr/v1;nostrv1\xa2\x02\x03NXX\xaa\x02\bNostr.V1\xca\x02\bNostr\\V1\xe2\x02\x14Nostr\\V1\\GPBMetadata\xea\x02\tNostr::V1b\x06proto3" | 1315 | "NostrProtoP\x01Z(northwest.io/muxstr/api/nostr/v1;nostrv1\xa2\x02\x03NXX\xaa\x02\bNostr.V1\xca\x02\bNostr\\V1\xe2\x02\x14Nostr\\V1\\GPBMetadata\xea\x02\tNostr::V1b\x06proto3" |
| 1316 | 1316 | ||
| 1317 | var ( | 1317 | var ( |
| 1318 | file_nostr_v1_nostr_proto_rawDescOnce sync.Once | 1318 | file_nostr_v1_nostr_proto_rawDescOnce sync.Once |
diff --git a/api/nostr/v1/nostrv1connect/nostr.connect.go b/api/nostr/v1/nostrv1connect/nostr.connect.go index fd98039..5ec7d95 100644 --- a/api/nostr/v1/nostrv1connect/nostr.connect.go +++ b/api/nostr/v1/nostrv1connect/nostr.connect.go | |||
| @@ -9,7 +9,7 @@ import ( | |||
| 9 | context "context" | 9 | context "context" |
| 10 | errors "errors" | 10 | errors "errors" |
| 11 | http "net/http" | 11 | http "net/http" |
| 12 | v1 "northwest.io/nostr-grpc/api/nostr/v1" | 12 | v1 "northwest.io/muxstr/api/nostr/v1" |
| 13 | strings "strings" | 13 | strings "strings" |
| 14 | ) | 14 | ) |
| 15 | 15 | ||
diff --git a/buf.gen.yaml b/buf.gen.yaml index 01fea00..fa908bf 100644 --- a/buf.gen.yaml +++ b/buf.gen.yaml | |||
| @@ -3,7 +3,7 @@ managed: | |||
| 3 | enabled: true | 3 | enabled: true |
| 4 | override: | 4 | override: |
| 5 | - file_option: go_package_prefix | 5 | - file_option: go_package_prefix |
| 6 | value: northwest.io/nostr-grpc/api | 6 | value: northwest.io/muxstr/api |
| 7 | plugins: | 7 | plugins: |
| 8 | - remote: buf.build/protocolbuffers/go | 8 | - remote: buf.build/protocolbuffers/go |
| 9 | out: api | 9 | out: api |
diff --git a/cmd/relay/main.go b/cmd/relay/main.go index 8f879b2..3a1eeef 100644 --- a/cmd/relay/main.go +++ b/cmd/relay/main.go | |||
| @@ -16,13 +16,13 @@ import ( | |||
| 16 | "golang.org/x/net/http2/h2c" | 16 | "golang.org/x/net/http2/h2c" |
| 17 | "google.golang.org/grpc" | 17 | "google.golang.org/grpc" |
| 18 | 18 | ||
| 19 | pb "northwest.io/nostr-grpc/api/nostr/v1" | 19 | pb "northwest.io/muxstr/api/nostr/v1" |
| 20 | "northwest.io/nostr-grpc/api/nostr/v1/nostrv1connect" | 20 | "northwest.io/muxstr/api/nostr/v1/nostrv1connect" |
| 21 | connecthandler "northwest.io/nostr-grpc/internal/handler/connect" | 21 | connecthandler "northwest.io/muxstr/internal/handler/connect" |
| 22 | grpchandler "northwest.io/nostr-grpc/internal/handler/grpc" | 22 | grpchandler "northwest.io/muxstr/internal/handler/grpc" |
| 23 | wshandler "northwest.io/nostr-grpc/internal/handler/websocket" | 23 | wshandler "northwest.io/muxstr/internal/handler/websocket" |
| 24 | "northwest.io/nostr-grpc/internal/storage" | 24 | "northwest.io/muxstr/internal/storage" |
| 25 | "northwest.io/nostr-grpc/internal/subscription" | 25 | "northwest.io/muxstr/internal/subscription" |
| 26 | ) | 26 | ) |
| 27 | 27 | ||
| 28 | func main() { | 28 | func main() { |
diff --git a/cmd/testclient/main.go b/cmd/testclient/main.go index 85f9917..8a7390a 100644 --- a/cmd/testclient/main.go +++ b/cmd/testclient/main.go | |||
| @@ -14,8 +14,8 @@ import ( | |||
| 14 | "google.golang.org/grpc/credentials" | 14 | "google.golang.org/grpc/credentials" |
| 15 | "google.golang.org/grpc/credentials/insecure" | 15 | "google.golang.org/grpc/credentials/insecure" |
| 16 | 16 | ||
| 17 | pb "northwest.io/nostr-grpc/api/nostr/v1" | 17 | pb "northwest.io/muxstr/api/nostr/v1" |
| 18 | "northwest.io/nostr-grpc/internal/nostr" | 18 | "northwest.io/muxstr/internal/nostr" |
| 19 | ) | 19 | ) |
| 20 | 20 | ||
| 21 | func main() { | 21 | func main() { |
diff --git a/examples/basic/main.go b/examples/basic/main.go index 4f2d10d..29d58a6 100644 --- a/examples/basic/main.go +++ b/examples/basic/main.go | |||
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | "os" | 6 | "os" |
| 7 | "time" | 7 | "time" |
| 8 | 8 | ||
| 9 | "northwest.io/nostr-grpc/internal/nostr" | 9 | "northwest.io/muxstr/internal/nostr" |
| 10 | ) | 10 | ) |
| 11 | 11 | ||
| 12 | // Example_basic demonstrates basic usage of the nostr library. | 12 | // Example_basic demonstrates basic usage of the nostr library. |
| @@ -1,17 +1,18 @@ | |||
| 1 | module northwest.io/nostr-grpc | 1 | module northwest.io/muxstr |
| 2 | 2 | ||
| 3 | go 1.24.0 | 3 | go 1.24.0 |
| 4 | 4 | ||
| 5 | require ( | 5 | require ( |
| 6 | connectrpc.com/connect v1.19.1 | ||
| 6 | github.com/btcsuite/btcd/btcec/v2 v2.3.2 | 7 | github.com/btcsuite/btcd/btcec/v2 v2.3.2 |
| 7 | github.com/klauspost/compress v1.18.4 | 8 | github.com/klauspost/compress v1.18.4 |
| 9 | golang.org/x/net v0.50.0 | ||
| 8 | google.golang.org/grpc v1.79.1 | 10 | google.golang.org/grpc v1.79.1 |
| 9 | google.golang.org/protobuf v1.36.11 | 11 | google.golang.org/protobuf v1.36.11 |
| 10 | modernc.org/sqlite v1.45.0 | 12 | modernc.org/sqlite v1.45.0 |
| 11 | ) | 13 | ) |
| 12 | 14 | ||
| 13 | require ( | 15 | require ( |
| 14 | connectrpc.com/connect v1.19.1 // indirect | ||
| 15 | github.com/btcsuite/btcd/chaincfg/chainhash v1.0.1 // indirect | 16 | github.com/btcsuite/btcd/chaincfg/chainhash v1.0.1 // indirect |
| 16 | github.com/decred/dcrd/crypto/blake256 v1.0.0 // indirect | 17 | github.com/decred/dcrd/crypto/blake256 v1.0.0 // indirect |
| 17 | github.com/decred/dcrd/dcrec/secp256k1/v4 v4.0.1 // indirect | 18 | github.com/decred/dcrd/dcrec/secp256k1/v4 v4.0.1 // indirect |
| @@ -21,7 +22,6 @@ require ( | |||
| 21 | github.com/ncruces/go-strftime v1.0.0 // indirect | 22 | github.com/ncruces/go-strftime v1.0.0 // indirect |
| 22 | github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec // indirect | 23 | github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec // indirect |
| 23 | golang.org/x/exp v0.0.0-20251023183803-a4bb9ffd2546 // indirect | 24 | golang.org/x/exp v0.0.0-20251023183803-a4bb9ffd2546 // indirect |
| 24 | golang.org/x/net v0.50.0 // indirect | ||
| 25 | golang.org/x/sys v0.41.0 // indirect | 25 | golang.org/x/sys v0.41.0 // indirect |
| 26 | golang.org/x/text v0.34.0 // indirect | 26 | golang.org/x/text v0.34.0 // indirect |
| 27 | 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 |
| @@ -50,27 +50,19 @@ go.opentelemetry.io/otel/trace v1.39.0 h1:2d2vfpEDmCJ5zVYz7ijaJdOF59xLomrvj7bjt6 | |||
| 50 | go.opentelemetry.io/otel/trace v1.39.0/go.mod h1:88w4/PnZSazkGzz/w84VHpQafiU4EtqqlVdxWy+rNOA= | 50 | go.opentelemetry.io/otel/trace v1.39.0/go.mod h1:88w4/PnZSazkGzz/w84VHpQafiU4EtqqlVdxWy+rNOA= |
| 51 | golang.org/x/exp v0.0.0-20251023183803-a4bb9ffd2546 h1:mgKeJMpvi0yx/sU5GsxQ7p6s2wtOnGAHZWCHUM4KGzY= | 51 | golang.org/x/exp v0.0.0-20251023183803-a4bb9ffd2546 h1:mgKeJMpvi0yx/sU5GsxQ7p6s2wtOnGAHZWCHUM4KGzY= |
| 52 | golang.org/x/exp v0.0.0-20251023183803-a4bb9ffd2546/go.mod h1:j/pmGrbnkbPtQfxEe5D0VQhZC6qKbfKifgD0oM7sR70= | 52 | golang.org/x/exp v0.0.0-20251023183803-a4bb9ffd2546/go.mod h1:j/pmGrbnkbPtQfxEe5D0VQhZC6qKbfKifgD0oM7sR70= |
| 53 | golang.org/x/mod v0.30.0 h1:fDEXFVZ/fmCKProc/yAXXUijritrDzahmwwefnjoPFk= | ||
| 54 | golang.org/x/mod v0.30.0/go.mod h1:lAsf5O2EvJeSFMiBxXDki7sCgAxEUcZHXoXMKT4GJKc= | ||
| 55 | golang.org/x/mod v0.32.0 h1:9F4d3PHLljb6x//jOyokMv3eX+YDeepZSEo3mFJy93c= | 53 | golang.org/x/mod v0.32.0 h1:9F4d3PHLljb6x//jOyokMv3eX+YDeepZSEo3mFJy93c= |
| 56 | golang.org/x/net v0.48.0 h1:zyQRTTrjc33Lhh0fBgT/H3oZq9WuvRR5gPC70xpDiQU= | 54 | golang.org/x/mod v0.32.0/go.mod h1:SgipZ/3h2Ci89DlEtEXWUk/HteuRin+HHhN+WbNhguU= |
| 57 | golang.org/x/net v0.48.0/go.mod h1:+ndRgGjkh8FGtu1w1FGbEC31if4VrNVMuKTgcAAnQRY= | ||
| 58 | golang.org/x/net v0.50.0 h1:ucWh9eiCGyDR3vtzso0WMQinm2Dnt8cFMuQa9K33J60= | 55 | golang.org/x/net v0.50.0 h1:ucWh9eiCGyDR3vtzso0WMQinm2Dnt8cFMuQa9K33J60= |
| 59 | golang.org/x/net v0.50.0/go.mod h1:UgoSli3F/pBgdJBHCTc+tp3gmrU4XswgGRgtnwWTfyM= | 56 | golang.org/x/net v0.50.0/go.mod h1:UgoSli3F/pBgdJBHCTc+tp3gmrU4XswgGRgtnwWTfyM= |
| 60 | golang.org/x/sync v0.19.0 h1:vV+1eWNmZ5geRlYjzm2adRgW2/mcpevXNg50YZtPCE4= | 57 | golang.org/x/sync v0.19.0 h1:vV+1eWNmZ5geRlYjzm2adRgW2/mcpevXNg50YZtPCE4= |
| 61 | golang.org/x/sync v0.19.0/go.mod h1:9KTHXmSnoGruLpwFjVSX0lNNA75CykiMECbovNTZqGI= | 58 | golang.org/x/sync v0.19.0/go.mod h1:9KTHXmSnoGruLpwFjVSX0lNNA75CykiMECbovNTZqGI= |
| 62 | golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= | 59 | golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= |
| 63 | golang.org/x/sys v0.39.0 h1:CvCKL8MeisomCi6qNZ+wbb0DN9E5AATixKsvNtMoMFk= | ||
| 64 | golang.org/x/sys v0.39.0/go.mod h1:OgkHotnGiDImocRcuBABYBEXf8A9a87e/uXjp9XT3ks= | ||
| 65 | golang.org/x/sys v0.41.0 h1:Ivj+2Cp/ylzLiEU89QhWblYnOE9zerudt9Ftecq2C6k= | 60 | golang.org/x/sys v0.41.0 h1:Ivj+2Cp/ylzLiEU89QhWblYnOE9zerudt9Ftecq2C6k= |
| 66 | golang.org/x/sys v0.41.0/go.mod h1:OgkHotnGiDImocRcuBABYBEXf8A9a87e/uXjp9XT3ks= | 61 | golang.org/x/sys v0.41.0/go.mod h1:OgkHotnGiDImocRcuBABYBEXf8A9a87e/uXjp9XT3ks= |
| 67 | golang.org/x/text v0.32.0 h1:ZD01bjUt1FQ9WJ0ClOL5vxgxOI/sVCNgX1YtKwcY0mU= | ||
| 68 | golang.org/x/text v0.32.0/go.mod h1:o/rUWzghvpD5TXrTIBuJU77MTaN0ljMWE47kxGJQ7jY= | ||
| 69 | golang.org/x/text v0.34.0 h1:oL/Qq0Kdaqxa1KbNeMKwQq0reLCCaFtqu2eNuSeNHbk= | 62 | golang.org/x/text v0.34.0 h1:oL/Qq0Kdaqxa1KbNeMKwQq0reLCCaFtqu2eNuSeNHbk= |
| 70 | golang.org/x/text v0.34.0/go.mod h1:homfLqTYRFyVYemLBFl5GgL/DWEiH5wcsQ5gSh1yziA= | 63 | golang.org/x/text v0.34.0/go.mod h1:homfLqTYRFyVYemLBFl5GgL/DWEiH5wcsQ5gSh1yziA= |
| 71 | golang.org/x/tools v0.39.0 h1:ik4ho21kwuQln40uelmciQPp9SipgNDdrafrYA4TmQQ= | ||
| 72 | golang.org/x/tools v0.39.0/go.mod h1:JnefbkDPyD8UU2kI5fuf8ZX4/yUeh9W877ZeBONxUqQ= | ||
| 73 | golang.org/x/tools v0.41.0 h1:a9b8iMweWG+S0OBnlU36rzLp20z1Rp10w+IY2czHTQc= | 64 | golang.org/x/tools v0.41.0 h1:a9b8iMweWG+S0OBnlU36rzLp20z1Rp10w+IY2czHTQc= |
| 65 | golang.org/x/tools v0.41.0/go.mod h1:XSY6eDqxVNiYgezAVqqCeihT4j1U2CCsqvH3WhQpnlg= | ||
| 74 | gonum.org/v1/gonum v0.16.0 h1:5+ul4Swaf3ESvrOnidPp4GZbzf0mxVQpDCYUQE7OJfk= | 66 | gonum.org/v1/gonum v0.16.0 h1:5+ul4Swaf3ESvrOnidPp4GZbzf0mxVQpDCYUQE7OJfk= |
| 75 | gonum.org/v1/gonum v0.16.0/go.mod h1:fef3am4MQ93R2HHpKnLk4/Tbh/s0+wqD5nfa6Pnwy4E= | 67 | gonum.org/v1/gonum v0.16.0/go.mod h1:fef3am4MQ93R2HHpKnLk4/Tbh/s0+wqD5nfa6Pnwy4E= |
| 76 | google.golang.org/genproto/googleapis/rpc v0.0.0-20251202230838-ff82c1b0f217 h1:gRkg/vSppuSQoDjxyiGfN4Upv/h/DQmIR10ZU8dh4Ww= | 68 | google.golang.org/genproto/googleapis/rpc v0.0.0-20251202230838-ff82c1b0f217 h1:gRkg/vSppuSQoDjxyiGfN4Upv/h/DQmIR10ZU8dh4Ww= |
diff --git a/internal/handler/connect/handler.go b/internal/handler/connect/handler.go index f33e4fc..7687154 100644 --- a/internal/handler/connect/handler.go +++ b/internal/handler/connect/handler.go | |||
| @@ -6,9 +6,9 @@ import ( | |||
| 6 | "connectrpc.com/connect" | 6 | "connectrpc.com/connect" |
| 7 | "google.golang.org/grpc/metadata" | 7 | "google.golang.org/grpc/metadata" |
| 8 | 8 | ||
| 9 | pb "northwest.io/nostr-grpc/api/nostr/v1" | 9 | pb "northwest.io/muxstr/api/nostr/v1" |
| 10 | "northwest.io/nostr-grpc/api/nostr/v1/nostrv1connect" | 10 | "northwest.io/muxstr/api/nostr/v1/nostrv1connect" |
| 11 | grpchandler "northwest.io/nostr-grpc/internal/handler/grpc" | 11 | grpchandler "northwest.io/muxstr/internal/handler/grpc" |
| 12 | ) | 12 | ) |
| 13 | 13 | ||
| 14 | type Handler struct { | 14 | type Handler struct { |
diff --git a/internal/handler/grpc/convert.go b/internal/handler/grpc/convert.go index 19505cd..db6935e 100644 --- a/internal/handler/grpc/convert.go +++ b/internal/handler/grpc/convert.go | |||
| @@ -1,8 +1,8 @@ | |||
| 1 | package grpc | 1 | package grpc |
| 2 | 2 | ||
| 3 | import ( | 3 | import ( |
| 4 | pb "northwest.io/nostr-grpc/api/nostr/v1" | 4 | pb "northwest.io/muxstr/api/nostr/v1" |
| 5 | "northwest.io/nostr-grpc/internal/nostr" | 5 | "northwest.io/muxstr/internal/nostr" |
| 6 | ) | 6 | ) |
| 7 | 7 | ||
| 8 | func NostrToPB(n *nostr.Event) *pb.Event { | 8 | func NostrToPB(n *nostr.Event) *pb.Event { |
diff --git a/internal/handler/grpc/convert_test.go b/internal/handler/grpc/convert_test.go index 6da2d89..e9116ef 100644 --- a/internal/handler/grpc/convert_test.go +++ b/internal/handler/grpc/convert_test.go | |||
| @@ -3,8 +3,8 @@ package grpc | |||
| 3 | import ( | 3 | import ( |
| 4 | "testing" | 4 | "testing" |
| 5 | 5 | ||
| 6 | pb "northwest.io/nostr-grpc/api/nostr/v1" | 6 | pb "northwest.io/muxstr/api/nostr/v1" |
| 7 | "northwest.io/nostr-grpc/internal/nostr" | 7 | "northwest.io/muxstr/internal/nostr" |
| 8 | ) | 8 | ) |
| 9 | 9 | ||
| 10 | func TestNostrToPB(t *testing.T) { | 10 | func TestNostrToPB(t *testing.T) { |
diff --git a/internal/handler/grpc/server.go b/internal/handler/grpc/server.go index 4d6e700..c5eb0d2 100644 --- a/internal/handler/grpc/server.go +++ b/internal/handler/grpc/server.go | |||
| @@ -5,9 +5,9 @@ import ( | |||
| 5 | "crypto/rand" | 5 | "crypto/rand" |
| 6 | "fmt" | 6 | "fmt" |
| 7 | 7 | ||
| 8 | pb "northwest.io/nostr-grpc/api/nostr/v1" | 8 | pb "northwest.io/muxstr/api/nostr/v1" |
| 9 | "northwest.io/nostr-grpc/internal/storage" | 9 | "northwest.io/muxstr/internal/storage" |
| 10 | "northwest.io/nostr-grpc/internal/subscription" | 10 | "northwest.io/muxstr/internal/subscription" |
| 11 | ) | 11 | ) |
| 12 | 12 | ||
| 13 | type EventStore interface { | 13 | type EventStore interface { |
diff --git a/internal/handler/grpc/server_test.go b/internal/handler/grpc/server_test.go index 12dde92..d589445 100644 --- a/internal/handler/grpc/server_test.go +++ b/internal/handler/grpc/server_test.go | |||
| @@ -6,9 +6,9 @@ import ( | |||
| 6 | "testing" | 6 | "testing" |
| 7 | "time" | 7 | "time" |
| 8 | 8 | ||
| 9 | pb "northwest.io/nostr-grpc/api/nostr/v1" | 9 | pb "northwest.io/muxstr/api/nostr/v1" |
| 10 | "northwest.io/nostr-grpc/internal/nostr" | 10 | "northwest.io/muxstr/internal/nostr" |
| 11 | "northwest.io/nostr-grpc/internal/storage" | 11 | "northwest.io/muxstr/internal/storage" |
| 12 | ) | 12 | ) |
| 13 | 13 | ||
| 14 | func TestPublishEvent(t *testing.T) { | 14 | func TestPublishEvent(t *testing.T) { |
diff --git a/internal/handler/websocket/convert.go b/internal/handler/websocket/convert.go index 0458ee4..1d006f9 100644 --- a/internal/handler/websocket/convert.go +++ b/internal/handler/websocket/convert.go | |||
| @@ -1,8 +1,8 @@ | |||
| 1 | package websocket | 1 | package websocket |
| 2 | 2 | ||
| 3 | import ( | 3 | import ( |
| 4 | pb "northwest.io/nostr-grpc/api/nostr/v1" | 4 | pb "northwest.io/muxstr/api/nostr/v1" |
| 5 | "northwest.io/nostr-grpc/internal/nostr" | 5 | "northwest.io/muxstr/internal/nostr" |
| 6 | ) | 6 | ) |
| 7 | 7 | ||
| 8 | func NostrToPB(n *nostr.Event) *pb.Event { | 8 | func NostrToPB(n *nostr.Event) *pb.Event { |
diff --git a/internal/handler/websocket/handler.go b/internal/handler/websocket/handler.go index c285df6..f8a7fbd 100644 --- a/internal/handler/websocket/handler.go +++ b/internal/handler/websocket/handler.go | |||
| @@ -7,11 +7,11 @@ import ( | |||
| 7 | "log" | 7 | "log" |
| 8 | "net/http" | 8 | "net/http" |
| 9 | 9 | ||
| 10 | pb "northwest.io/nostr-grpc/api/nostr/v1" | 10 | pb "northwest.io/muxstr/api/nostr/v1" |
| 11 | "northwest.io/nostr-grpc/internal/nostr" | 11 | "northwest.io/muxstr/internal/nostr" |
| 12 | "northwest.io/nostr-grpc/internal/storage" | 12 | "northwest.io/muxstr/internal/storage" |
| 13 | "northwest.io/nostr-grpc/internal/subscription" | 13 | "northwest.io/muxstr/internal/subscription" |
| 14 | "northwest.io/nostr-grpc/internal/websocket" | 14 | "northwest.io/muxstr/internal/websocket" |
| 15 | ) | 15 | ) |
| 16 | 16 | ||
| 17 | type EventStore interface { | 17 | type EventStore interface { |
diff --git a/internal/handler/websocket/nip11.go b/internal/handler/websocket/nip11.go index a5bb9ca..8de95a2 100644 --- a/internal/handler/websocket/nip11.go +++ b/internal/handler/websocket/nip11.go | |||
| @@ -32,10 +32,10 @@ type Limits struct { | |||
| 32 | 32 | ||
| 33 | func (h *Handler) ServeNIP11(w http.ResponseWriter, r *http.Request) { | 33 | func (h *Handler) ServeNIP11(w http.ResponseWriter, r *http.Request) { |
| 34 | info := RelayInfo{ | 34 | info := RelayInfo{ |
| 35 | Name: "nostr-grpc relay", | 35 | Name: "muxstr relay", |
| 36 | Description: "High-performance Nostr relay with gRPC, Connect, and WebSocket support", | 36 | Description: "High-performance Nostr relay with gRPC, Connect, and WebSocket support", |
| 37 | SupportedNIPs: []int{1, 9, 11}, | 37 | SupportedNIPs: []int{1, 9, 11}, |
| 38 | Software: "northwest.io/nostr-grpc", | 38 | Software: "northwest.io/muxstr", |
| 39 | Version: "0.1.0", | 39 | Version: "0.1.0", |
| 40 | Limitation: &Limits{ | 40 | Limitation: &Limits{ |
| 41 | MaxMessageLength: 65536, | 41 | MaxMessageLength: 65536, |
diff --git a/internal/nostr/example_test.go b/internal/nostr/example_test.go index 80acd21..7031c65 100644 --- a/internal/nostr/example_test.go +++ b/internal/nostr/example_test.go | |||
| @@ -5,7 +5,7 @@ import ( | |||
| 5 | "fmt" | 5 | "fmt" |
| 6 | "time" | 6 | "time" |
| 7 | 7 | ||
| 8 | "northwest.io/nostr-grpc/internal/nostr" | 8 | "northwest.io/muxstr/internal/nostr" |
| 9 | ) | 9 | ) |
| 10 | 10 | ||
| 11 | // Example_basic demonstrates basic usage of the nostr library. | 11 | // Example_basic demonstrates basic usage of the nostr library. |
diff --git a/internal/nostr/relay.go b/internal/nostr/relay.go index 2b156e0..189fb93 100644 --- a/internal/nostr/relay.go +++ b/internal/nostr/relay.go | |||
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | "fmt" | 6 | "fmt" |
| 7 | "sync" | 7 | "sync" |
| 8 | 8 | ||
| 9 | "northwest.io/nostr-grpc/internal/websocket" | 9 | "northwest.io/muxstr/internal/websocket" |
| 10 | ) | 10 | ) |
| 11 | 11 | ||
| 12 | // Relay represents a connection to a Nostr relay. | 12 | // Relay represents a connection to a Nostr relay. |
diff --git a/internal/nostr/relay_test.go b/internal/nostr/relay_test.go index 02bd8e5..7b40653 100644 --- a/internal/nostr/relay_test.go +++ b/internal/nostr/relay_test.go | |||
| @@ -9,7 +9,7 @@ import ( | |||
| 9 | "testing" | 9 | "testing" |
| 10 | "time" | 10 | "time" |
| 11 | 11 | ||
| 12 | "northwest.io/nostr-grpc/internal/websocket" | 12 | "northwest.io/muxstr/internal/websocket" |
| 13 | ) | 13 | ) |
| 14 | 14 | ||
| 15 | // mockRelay creates a test WebSocket server that echoes messages | 15 | // mockRelay creates a test WebSocket server that echoes messages |
diff --git a/internal/storage/deletions.go b/internal/storage/deletions.go index c16b96b..3999d2c 100644 --- a/internal/storage/deletions.go +++ b/internal/storage/deletions.go | |||
| @@ -4,7 +4,7 @@ import ( | |||
| 4 | "context" | 4 | "context" |
| 5 | "fmt" | 5 | "fmt" |
| 6 | 6 | ||
| 7 | pb "northwest.io/nostr-grpc/api/nostr/v1" | 7 | pb "northwest.io/muxstr/api/nostr/v1" |
| 8 | ) | 8 | ) |
| 9 | 9 | ||
| 10 | const KindDeletion = 5 | 10 | const KindDeletion = 5 |
diff --git a/internal/storage/deletions_test.go b/internal/storage/deletions_test.go index 71fa477..fe82d86 100644 --- a/internal/storage/deletions_test.go +++ b/internal/storage/deletions_test.go | |||
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | "testing" | 6 | "testing" |
| 7 | "time" | 7 | "time" |
| 8 | 8 | ||
| 9 | pb "northwest.io/nostr-grpc/api/nostr/v1" | 9 | pb "northwest.io/muxstr/api/nostr/v1" |
| 10 | ) | 10 | ) |
| 11 | 11 | ||
| 12 | func TestProcessDeletion(t *testing.T) { | 12 | func TestProcessDeletion(t *testing.T) { |
diff --git a/internal/storage/events.go b/internal/storage/events.go index d74fc7e..836f795 100644 --- a/internal/storage/events.go +++ b/internal/storage/events.go | |||
| @@ -10,7 +10,7 @@ import ( | |||
| 10 | "github.com/klauspost/compress/zstd" | 10 | "github.com/klauspost/compress/zstd" |
| 11 | "google.golang.org/protobuf/proto" | 11 | "google.golang.org/protobuf/proto" |
| 12 | 12 | ||
| 13 | pb "northwest.io/nostr-grpc/api/nostr/v1" | 13 | pb "northwest.io/muxstr/api/nostr/v1" |
| 14 | ) | 14 | ) |
| 15 | 15 | ||
| 16 | var ( | 16 | var ( |
diff --git a/internal/storage/events_test.go b/internal/storage/events_test.go index 4393404..0c30281 100644 --- a/internal/storage/events_test.go +++ b/internal/storage/events_test.go | |||
| @@ -4,7 +4,7 @@ import ( | |||
| 4 | "context" | 4 | "context" |
| 5 | "testing" | 5 | "testing" |
| 6 | 6 | ||
| 7 | pb "northwest.io/nostr-grpc/api/nostr/v1" | 7 | pb "northwest.io/muxstr/api/nostr/v1" |
| 8 | ) | 8 | ) |
| 9 | 9 | ||
| 10 | func TestStoreEvent(t *testing.T) { | 10 | func TestStoreEvent(t *testing.T) { |
diff --git a/internal/storage/query.go b/internal/storage/query.go index 29a2a4c..e756f8f 100644 --- a/internal/storage/query.go +++ b/internal/storage/query.go | |||
| @@ -7,7 +7,7 @@ import ( | |||
| 7 | 7 | ||
| 8 | "google.golang.org/protobuf/proto" | 8 | "google.golang.org/protobuf/proto" |
| 9 | 9 | ||
| 10 | pb "northwest.io/nostr-grpc/api/nostr/v1" | 10 | pb "northwest.io/muxstr/api/nostr/v1" |
| 11 | ) | 11 | ) |
| 12 | 12 | ||
| 13 | type QueryOptions struct { | 13 | type QueryOptions struct { |
diff --git a/internal/storage/query_test.go b/internal/storage/query_test.go index b1f2fc7..cdff0ec 100644 --- a/internal/storage/query_test.go +++ b/internal/storage/query_test.go | |||
| @@ -4,7 +4,7 @@ import ( | |||
| 4 | "context" | 4 | "context" |
| 5 | "testing" | 5 | "testing" |
| 6 | 6 | ||
| 7 | pb "northwest.io/nostr-grpc/api/nostr/v1" | 7 | pb "northwest.io/muxstr/api/nostr/v1" |
| 8 | ) | 8 | ) |
| 9 | 9 | ||
| 10 | func setupTestEvents(t *testing.T, store *Storage) { | 10 | func setupTestEvents(t *testing.T, store *Storage) { |
diff --git a/internal/subscription/manager.go b/internal/subscription/manager.go index 0e737d8..6347018 100644 --- a/internal/subscription/manager.go +++ b/internal/subscription/manager.go | |||
| @@ -3,7 +3,7 @@ package subscription | |||
| 3 | import ( | 3 | import ( |
| 4 | "sync" | 4 | "sync" |
| 5 | 5 | ||
| 6 | pb "northwest.io/nostr-grpc/api/nostr/v1" | 6 | pb "northwest.io/muxstr/api/nostr/v1" |
| 7 | ) | 7 | ) |
| 8 | 8 | ||
| 9 | type Subscription struct { | 9 | type Subscription struct { |
diff --git a/internal/subscription/manager_test.go b/internal/subscription/manager_test.go index d816fcd..5e09919 100644 --- a/internal/subscription/manager_test.go +++ b/internal/subscription/manager_test.go | |||
| @@ -4,7 +4,7 @@ import ( | |||
| 4 | "testing" | 4 | "testing" |
| 5 | "time" | 5 | "time" |
| 6 | 6 | ||
| 7 | pb "northwest.io/nostr-grpc/api/nostr/v1" | 7 | pb "northwest.io/muxstr/api/nostr/v1" |
| 8 | ) | 8 | ) |
| 9 | 9 | ||
| 10 | func TestManagerAddRemove(t *testing.T) { | 10 | func TestManagerAddRemove(t *testing.T) { |
diff --git a/proto/nostr/v1/nostr.proto b/proto/nostr/v1/nostr.proto index 7e8eacb..e91b89a 100644 --- a/proto/nostr/v1/nostr.proto +++ b/proto/nostr/v1/nostr.proto | |||
| @@ -2,7 +2,7 @@ syntax = "proto3"; | |||
| 2 | 2 | ||
| 3 | package nostr.v1; | 3 | package nostr.v1; |
| 4 | 4 | ||
| 5 | option go_package = "northwest.io/nostr-grpc/api/nostr/v1;nostrv1"; | 5 | option go_package = "northwest.io/muxstr/api/nostr/v1;nostrv1"; |
| 6 | 6 | ||
| 7 | // Core Nostr event as defined in NIP-01 | 7 | // Core Nostr event as defined in NIP-01 |
| 8 | message Event { | 8 | message Event { |
