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/handler | |
| 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/handler')
| -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 |
8 files changed, 22 insertions, 22 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, |
