From 02d6819ebfdc5b18d65c83c4077a040466960bac Mon Sep 17 00:00:00 2001 From: bndw Date: Mon, 16 Feb 2026 12:04:20 -0800 Subject: 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. --- internal/auth/auth_test.go | 2 +- internal/auth/credentials.go | 2 +- internal/auth/validation.go | 2 +- internal/config/config.go | 2 +- internal/handler/grpc/convert.go | 2 +- internal/handler/grpc/convert_test.go | 2 +- internal/handler/grpc/server_test.go | 2 +- internal/handler/websocket/convert.go | 2 +- internal/handler/websocket/handler.go | 2 +- 9 files changed, 9 insertions(+), 9 deletions(-) (limited to 'internal') 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 ( "time" "google.golang.org/grpc/metadata" - "northwest.io/nostr" + "code.northwest.io/nostr" ) 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 ( "fmt" "time" - "northwest.io/nostr" + "code.northwest.io/nostr" ) // 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 ( "strings" "time" - "northwest.io/nostr" + "code.northwest.io/nostr" ) 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 ( "northwest.io/muxstr/internal/auth" "northwest.io/muxstr/internal/metrics" "northwest.io/muxstr/internal/ratelimit" - "northwest.io/nostr" + "code.northwest.io/nostr" ) 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 import ( pb "northwest.io/muxstr/api/nostr/v1" - "northwest.io/nostr" + "code.northwest.io/nostr" ) 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 ( "testing" pb "northwest.io/muxstr/api/nostr/v1" - "northwest.io/nostr" + "code.northwest.io/nostr" ) 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 ( pb "northwest.io/muxstr/api/nostr/v1" "northwest.io/muxstr/internal/storage" - "northwest.io/nostr" + "code.northwest.io/nostr" ) 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 import ( pb "northwest.io/muxstr/api/nostr/v1" - "northwest.io/nostr" + "code.northwest.io/nostr" ) 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 ( "northwest.io/muxstr/internal/storage" "northwest.io/muxstr/internal/subscription" "northwest.io/muxstr/internal/websocket" - "northwest.io/nostr" + "code.northwest.io/nostr" ) type EventStore interface { -- cgit v1.2.3