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 /internal | |
| 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.
Diffstat (limited to 'internal')
| -rw-r--r-- | internal/handler/connect/handler.go | 6 | ||||
| -rw-r--r-- | internal/handler/grpc/convert.go | 4 | ||||
| -rw-r--r-- | internal/handler/grpc/convert_test.go | 4 | ||||
| -rw-r--r-- | internal/handler/grpc/server.go | 6 | ||||
| -rw-r--r-- | internal/handler/grpc/server_test.go | 6 | ||||
| -rw-r--r-- | internal/handler/websocket/convert.go | 4 | ||||
| -rw-r--r-- | internal/handler/websocket/handler.go | 10 | ||||
| -rw-r--r-- | internal/handler/websocket/nip11.go | 4 | ||||
| -rw-r--r-- | internal/nostr/example_test.go | 2 | ||||
| -rw-r--r-- | internal/nostr/relay.go | 2 | ||||
| -rw-r--r-- | internal/nostr/relay_test.go | 2 | ||||
| -rw-r--r-- | internal/storage/deletions.go | 2 | ||||
| -rw-r--r-- | internal/storage/deletions_test.go | 2 | ||||
| -rw-r--r-- | internal/storage/events.go | 2 | ||||
| -rw-r--r-- | internal/storage/events_test.go | 2 | ||||
| -rw-r--r-- | internal/storage/query.go | 2 | ||||
| -rw-r--r-- | internal/storage/query_test.go | 2 | ||||
| -rw-r--r-- | internal/subscription/manager.go | 2 | ||||
| -rw-r--r-- | internal/subscription/manager_test.go | 2 |
19 files changed, 33 insertions, 33 deletions
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) { |
