From 0406e24e1259e1a9adcd739da388dcca9ec8feba Mon Sep 17 00:00:00 2001 From: bndw Date: Sat, 14 Feb 2026 08:21:01 -0800 Subject: 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. --- internal/handler/connect/handler.go | 6 +++--- internal/handler/grpc/convert.go | 4 ++-- internal/handler/grpc/convert_test.go | 4 ++-- internal/handler/grpc/server.go | 6 +++--- internal/handler/grpc/server_test.go | 6 +++--- internal/handler/websocket/convert.go | 4 ++-- internal/handler/websocket/handler.go | 10 +++++----- internal/handler/websocket/nip11.go | 4 ++-- 8 files changed, 22 insertions(+), 22 deletions(-) (limited to 'internal/handler') 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 ( "connectrpc.com/connect" "google.golang.org/grpc/metadata" - pb "northwest.io/nostr-grpc/api/nostr/v1" - "northwest.io/nostr-grpc/api/nostr/v1/nostrv1connect" - grpchandler "northwest.io/nostr-grpc/internal/handler/grpc" + pb "northwest.io/muxstr/api/nostr/v1" + "northwest.io/muxstr/api/nostr/v1/nostrv1connect" + grpchandler "northwest.io/muxstr/internal/handler/grpc" ) 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 @@ package grpc import ( - pb "northwest.io/nostr-grpc/api/nostr/v1" - "northwest.io/nostr-grpc/internal/nostr" + pb "northwest.io/muxstr/api/nostr/v1" + "northwest.io/muxstr/internal/nostr" ) 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 import ( "testing" - pb "northwest.io/nostr-grpc/api/nostr/v1" - "northwest.io/nostr-grpc/internal/nostr" + pb "northwest.io/muxstr/api/nostr/v1" + "northwest.io/muxstr/internal/nostr" ) 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 ( "crypto/rand" "fmt" - pb "northwest.io/nostr-grpc/api/nostr/v1" - "northwest.io/nostr-grpc/internal/storage" - "northwest.io/nostr-grpc/internal/subscription" + pb "northwest.io/muxstr/api/nostr/v1" + "northwest.io/muxstr/internal/storage" + "northwest.io/muxstr/internal/subscription" ) 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 ( "testing" "time" - pb "northwest.io/nostr-grpc/api/nostr/v1" - "northwest.io/nostr-grpc/internal/nostr" - "northwest.io/nostr-grpc/internal/storage" + pb "northwest.io/muxstr/api/nostr/v1" + "northwest.io/muxstr/internal/nostr" + "northwest.io/muxstr/internal/storage" ) 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 @@ package websocket import ( - pb "northwest.io/nostr-grpc/api/nostr/v1" - "northwest.io/nostr-grpc/internal/nostr" + pb "northwest.io/muxstr/api/nostr/v1" + "northwest.io/muxstr/internal/nostr" ) 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 ( "log" "net/http" - pb "northwest.io/nostr-grpc/api/nostr/v1" - "northwest.io/nostr-grpc/internal/nostr" - "northwest.io/nostr-grpc/internal/storage" - "northwest.io/nostr-grpc/internal/subscription" - "northwest.io/nostr-grpc/internal/websocket" + pb "northwest.io/muxstr/api/nostr/v1" + "northwest.io/muxstr/internal/nostr" + "northwest.io/muxstr/internal/storage" + "northwest.io/muxstr/internal/subscription" + "northwest.io/muxstr/internal/websocket" ) 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 { func (h *Handler) ServeNIP11(w http.ResponseWriter, r *http.Request) { info := RelayInfo{ - Name: "nostr-grpc relay", + Name: "muxstr relay", Description: "High-performance Nostr relay with gRPC, Connect, and WebSocket support", SupportedNIPs: []int{1, 9, 11}, - Software: "northwest.io/nostr-grpc", + Software: "northwest.io/muxstr", Version: "0.1.0", Limitation: &Limits{ MaxMessageLength: 65536, -- cgit v1.2.3