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 ++-- internal/nostr/example_test.go | 2 +- internal/nostr/relay.go | 2 +- internal/nostr/relay_test.go | 2 +- internal/storage/deletions.go | 2 +- internal/storage/deletions_test.go | 2 +- internal/storage/events.go | 2 +- internal/storage/events_test.go | 2 +- internal/storage/query.go | 2 +- internal/storage/query_test.go | 2 +- internal/subscription/manager.go | 2 +- internal/subscription/manager_test.go | 2 +- 19 files changed, 33 insertions(+), 33 deletions(-) (limited to 'internal') 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, 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 ( "fmt" "time" - "northwest.io/nostr-grpc/internal/nostr" + "northwest.io/muxstr/internal/nostr" ) // 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 ( "fmt" "sync" - "northwest.io/nostr-grpc/internal/websocket" + "northwest.io/muxstr/internal/websocket" ) // 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 ( "testing" "time" - "northwest.io/nostr-grpc/internal/websocket" + "northwest.io/muxstr/internal/websocket" ) // 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 ( "context" "fmt" - pb "northwest.io/nostr-grpc/api/nostr/v1" + pb "northwest.io/muxstr/api/nostr/v1" ) 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 ( "testing" "time" - pb "northwest.io/nostr-grpc/api/nostr/v1" + pb "northwest.io/muxstr/api/nostr/v1" ) 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 ( "github.com/klauspost/compress/zstd" "google.golang.org/protobuf/proto" - pb "northwest.io/nostr-grpc/api/nostr/v1" + pb "northwest.io/muxstr/api/nostr/v1" ) 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 ( "context" "testing" - pb "northwest.io/nostr-grpc/api/nostr/v1" + pb "northwest.io/muxstr/api/nostr/v1" ) 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 ( "google.golang.org/protobuf/proto" - pb "northwest.io/nostr-grpc/api/nostr/v1" + pb "northwest.io/muxstr/api/nostr/v1" ) 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 ( "context" "testing" - pb "northwest.io/nostr-grpc/api/nostr/v1" + pb "northwest.io/muxstr/api/nostr/v1" ) 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 import ( "sync" - pb "northwest.io/nostr-grpc/api/nostr/v1" + pb "northwest.io/muxstr/api/nostr/v1" ) 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 ( "testing" "time" - pb "northwest.io/nostr-grpc/api/nostr/v1" + pb "northwest.io/muxstr/api/nostr/v1" ) func TestManagerAddRemove(t *testing.T) { -- cgit v1.2.3