summaryrefslogtreecommitdiffstats
path: root/internal/handler
diff options
context:
space:
mode:
Diffstat (limited to 'internal/handler')
-rw-r--r--internal/handler/connect/handler.go6
-rw-r--r--internal/handler/grpc/convert.go4
-rw-r--r--internal/handler/grpc/convert_test.go4
-rw-r--r--internal/handler/grpc/server.go6
-rw-r--r--internal/handler/grpc/server_test.go6
-rw-r--r--internal/handler/websocket/convert.go4
-rw-r--r--internal/handler/websocket/handler.go10
-rw-r--r--internal/handler/websocket/nip11.go4
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
14type Handler struct { 14type 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 @@
1package grpc 1package grpc
2 2
3import ( 3import (
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
8func NostrToPB(n *nostr.Event) *pb.Event { 8func 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
3import ( 3import (
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
10func TestNostrToPB(t *testing.T) { 10func 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
13type EventStore interface { 13type 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
14func TestPublishEvent(t *testing.T) { 14func 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 @@
1package websocket 1package websocket
2 2
3import ( 3import (
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
8func NostrToPB(n *nostr.Event) *pb.Event { 8func 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
17type EventStore interface { 17type 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
33func (h *Handler) ServeNIP11(w http.ResponseWriter, r *http.Request) { 33func (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,