diff options
| author | bndw <ben@bdw.to> | 2026-02-16 12:04:20 -0800 |
|---|---|---|
| committer | bndw <ben@bdw.to> | 2026-02-16 12:04:20 -0800 |
| commit | 02d6819ebfdc5b18d65c83c4077a040466960bac (patch) | |
| tree | 7a9b0875c7910a93b314d28759da8a171dc1a190 /internal | |
| parent | e7c37e80f0ebd0894df45cf2e9f4f29e16a781d7 (diff) | |
refactor: migrate nostr dependency to code.northwest.io
Updated all import references from northwest.io/nostr to code.northwest.io/nostr and removed the local replace directive from go.mod. The module is now resolved from the published repository.
Diffstat (limited to 'internal')
| -rw-r--r-- | internal/auth/auth_test.go | 2 | ||||
| -rw-r--r-- | internal/auth/credentials.go | 2 | ||||
| -rw-r--r-- | internal/auth/validation.go | 2 | ||||
| -rw-r--r-- | internal/config/config.go | 2 | ||||
| -rw-r--r-- | internal/handler/grpc/convert.go | 2 | ||||
| -rw-r--r-- | internal/handler/grpc/convert_test.go | 2 | ||||
| -rw-r--r-- | internal/handler/grpc/server_test.go | 2 | ||||
| -rw-r--r-- | internal/handler/websocket/convert.go | 2 | ||||
| -rw-r--r-- | internal/handler/websocket/handler.go | 2 |
9 files changed, 9 insertions, 9 deletions
diff --git a/internal/auth/auth_test.go b/internal/auth/auth_test.go index 68c68f5..b350fda 100644 --- a/internal/auth/auth_test.go +++ b/internal/auth/auth_test.go | |||
| @@ -8,7 +8,7 @@ import ( | |||
| 8 | "time" | 8 | "time" |
| 9 | 9 | ||
| 10 | "google.golang.org/grpc/metadata" | 10 | "google.golang.org/grpc/metadata" |
| 11 | "northwest.io/nostr" | 11 | "code.northwest.io/nostr" |
| 12 | ) | 12 | ) |
| 13 | 13 | ||
| 14 | func TestNostrCredentials(t *testing.T) { | 14 | func TestNostrCredentials(t *testing.T) { |
diff --git a/internal/auth/credentials.go b/internal/auth/credentials.go index 8e8aae8..6019a28 100644 --- a/internal/auth/credentials.go +++ b/internal/auth/credentials.go | |||
| @@ -8,7 +8,7 @@ import ( | |||
| 8 | "fmt" | 8 | "fmt" |
| 9 | "time" | 9 | "time" |
| 10 | 10 | ||
| 11 | "northwest.io/nostr" | 11 | "code.northwest.io/nostr" |
| 12 | ) | 12 | ) |
| 13 | 13 | ||
| 14 | // NostrCredentials implements credentials.PerRPCCredentials for NIP-98 auth. | 14 | // NostrCredentials implements credentials.PerRPCCredentials for NIP-98 auth. |
diff --git a/internal/auth/validation.go b/internal/auth/validation.go index 8b9d8a1..366c8e9 100644 --- a/internal/auth/validation.go +++ b/internal/auth/validation.go | |||
| @@ -7,7 +7,7 @@ import ( | |||
| 7 | "strings" | 7 | "strings" |
| 8 | "time" | 8 | "time" |
| 9 | 9 | ||
| 10 | "northwest.io/nostr" | 10 | "code.northwest.io/nostr" |
| 11 | ) | 11 | ) |
| 12 | 12 | ||
| 13 | type ValidationOptions struct { | 13 | type ValidationOptions struct { |
diff --git a/internal/config/config.go b/internal/config/config.go index dcceade..7eca750 100644 --- a/internal/config/config.go +++ b/internal/config/config.go | |||
| @@ -10,7 +10,7 @@ import ( | |||
| 10 | "northwest.io/muxstr/internal/auth" | 10 | "northwest.io/muxstr/internal/auth" |
| 11 | "northwest.io/muxstr/internal/metrics" | 11 | "northwest.io/muxstr/internal/metrics" |
| 12 | "northwest.io/muxstr/internal/ratelimit" | 12 | "northwest.io/muxstr/internal/ratelimit" |
| 13 | "northwest.io/nostr" | 13 | "code.northwest.io/nostr" |
| 14 | ) | 14 | ) |
| 15 | 15 | ||
| 16 | type Config struct { | 16 | type Config struct { |
diff --git a/internal/handler/grpc/convert.go b/internal/handler/grpc/convert.go index 6f1bec3..a79b13a 100644 --- a/internal/handler/grpc/convert.go +++ b/internal/handler/grpc/convert.go | |||
| @@ -2,7 +2,7 @@ package grpc | |||
| 2 | 2 | ||
| 3 | import ( | 3 | import ( |
| 4 | pb "northwest.io/muxstr/api/nostr/v1" | 4 | pb "northwest.io/muxstr/api/nostr/v1" |
| 5 | "northwest.io/nostr" | 5 | "code.northwest.io/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 7ef08f9..64f5b73 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/nostr" | 7 | "code.northwest.io/nostr" |
| 8 | ) | 8 | ) |
| 9 | 9 | ||
| 10 | func TestNostrToPB(t *testing.T) { | 10 | func TestNostrToPB(t *testing.T) { |
diff --git a/internal/handler/grpc/server_test.go b/internal/handler/grpc/server_test.go index 8bd48ea..99feee0 100644 --- a/internal/handler/grpc/server_test.go +++ b/internal/handler/grpc/server_test.go | |||
| @@ -8,7 +8,7 @@ import ( | |||
| 8 | 8 | ||
| 9 | pb "northwest.io/muxstr/api/nostr/v1" | 9 | pb "northwest.io/muxstr/api/nostr/v1" |
| 10 | "northwest.io/muxstr/internal/storage" | 10 | "northwest.io/muxstr/internal/storage" |
| 11 | "northwest.io/nostr" | 11 | "code.northwest.io/nostr" |
| 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 5a5692a..6072a3e 100644 --- a/internal/handler/websocket/convert.go +++ b/internal/handler/websocket/convert.go | |||
| @@ -2,7 +2,7 @@ package websocket | |||
| 2 | 2 | ||
| 3 | import ( | 3 | import ( |
| 4 | pb "northwest.io/muxstr/api/nostr/v1" | 4 | pb "northwest.io/muxstr/api/nostr/v1" |
| 5 | "northwest.io/nostr" | 5 | "code.northwest.io/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 51288bc..6eb8763 100644 --- a/internal/handler/websocket/handler.go +++ b/internal/handler/websocket/handler.go | |||
| @@ -12,7 +12,7 @@ import ( | |||
| 12 | "northwest.io/muxstr/internal/storage" | 12 | "northwest.io/muxstr/internal/storage" |
| 13 | "northwest.io/muxstr/internal/subscription" | 13 | "northwest.io/muxstr/internal/subscription" |
| 14 | "northwest.io/muxstr/internal/websocket" | 14 | "northwest.io/muxstr/internal/websocket" |
| 15 | "northwest.io/nostr" | 15 | "code.northwest.io/nostr" |
| 16 | ) | 16 | ) |
| 17 | 17 | ||
| 18 | type EventStore interface { | 18 | type EventStore interface { |
