summaryrefslogtreecommitdiffstats
path: root/internal/handler
diff options
context:
space:
mode:
Diffstat (limited to 'internal/handler')
-rw-r--r--internal/handler/grpc/convert.go2
-rw-r--r--internal/handler/grpc/convert_test.go2
-rw-r--r--internal/handler/grpc/server_test.go2
-rw-r--r--internal/handler/websocket/convert.go2
-rw-r--r--internal/handler/websocket/handler.go2
5 files changed, 5 insertions, 5 deletions
diff --git a/internal/handler/grpc/convert.go b/internal/handler/grpc/convert.go
index db6935e..6f1bec3 100644
--- a/internal/handler/grpc/convert.go
+++ b/internal/handler/grpc/convert.go
@@ -2,7 +2,7 @@ package grpc
2 2
3import ( 3import (
4 pb "northwest.io/muxstr/api/nostr/v1" 4 pb "northwest.io/muxstr/api/nostr/v1"
5 "northwest.io/muxstr/internal/nostr" 5 "northwest.io/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 e9116ef..7ef08f9 100644
--- a/internal/handler/grpc/convert_test.go
+++ b/internal/handler/grpc/convert_test.go
@@ -4,7 +4,7 @@ import (
4 "testing" 4 "testing"
5 5
6 pb "northwest.io/muxstr/api/nostr/v1" 6 pb "northwest.io/muxstr/api/nostr/v1"
7 "northwest.io/muxstr/internal/nostr" 7 "northwest.io/nostr"
8) 8)
9 9
10func TestNostrToPB(t *testing.T) { 10func TestNostrToPB(t *testing.T) {
diff --git a/internal/handler/grpc/server_test.go b/internal/handler/grpc/server_test.go
index d589445..8bd48ea 100644
--- a/internal/handler/grpc/server_test.go
+++ b/internal/handler/grpc/server_test.go
@@ -7,8 +7,8 @@ import (
7 "time" 7 "time"
8 8
9 pb "northwest.io/muxstr/api/nostr/v1" 9 pb "northwest.io/muxstr/api/nostr/v1"
10 "northwest.io/muxstr/internal/nostr"
11 "northwest.io/muxstr/internal/storage" 10 "northwest.io/muxstr/internal/storage"
11 "northwest.io/nostr"
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 1d006f9..5a5692a 100644
--- a/internal/handler/websocket/convert.go
+++ b/internal/handler/websocket/convert.go
@@ -2,7 +2,7 @@ package websocket
2 2
3import ( 3import (
4 pb "northwest.io/muxstr/api/nostr/v1" 4 pb "northwest.io/muxstr/api/nostr/v1"
5 "northwest.io/muxstr/internal/nostr" 5 "northwest.io/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 f8a7fbd..5d40abb 100644
--- a/internal/handler/websocket/handler.go
+++ b/internal/handler/websocket/handler.go
@@ -8,10 +8,10 @@ import (
8 "net/http" 8 "net/http"
9 9
10 pb "northwest.io/muxstr/api/nostr/v1" 10 pb "northwest.io/muxstr/api/nostr/v1"
11 "northwest.io/muxstr/internal/nostr"
12 "northwest.io/muxstr/internal/storage" 11 "northwest.io/muxstr/internal/storage"
13 "northwest.io/muxstr/internal/subscription" 12 "northwest.io/muxstr/internal/subscription"
14 "northwest.io/muxstr/internal/websocket" 13 "northwest.io/muxstr/internal/websocket"
14 "northwest.io/nostr"
15) 15)
16 16
17type EventStore interface { 17type EventStore interface {