From 170bdf9c14899e436e7aae4411bcb5cd166e7217 Mon Sep 17 00:00:00 2001 From: bndw Date: Mon, 9 Mar 2026 17:50:44 -0700 Subject: refactor: rename modules to code.northwest.io/axon --- axon_test.go | 2 +- cli | Bin 0 -> 8000945 bytes cmd/axon/go.mod | 10 +++++----- cmd/axon/main.go | 4 ++-- go.mod | 2 +- go.sum | 5 +++++ relay/go.mod | 6 +++--- relay/handler.go | 8 ++++---- relay/main.go | 4 ++-- relay/server.go | 6 +++--- relay/storage/events.go | 2 +- relay/subscription/manager.go | 2 +- 12 files changed, 28 insertions(+), 23 deletions(-) create mode 100755 cli diff --git a/axon_test.go b/axon_test.go index b7f5bd6..0775c0c 100644 --- a/axon_test.go +++ b/axon_test.go @@ -9,7 +9,7 @@ import ( "testing" "time" - "axon" + "code.northwest.io/axon" ) // -------------------------------------------------------------------------- diff --git a/cli b/cli new file mode 100755 index 0000000..c64001f Binary files /dev/null and b/cli differ diff --git a/cmd/axon/go.mod b/cmd/axon/go.mod index 2f26fca..f5438b0 100644 --- a/cmd/axon/go.mod +++ b/cmd/axon/go.mod @@ -1,10 +1,10 @@ -module axon/cli +module code.northwest.io/axon/cli go 1.25.5 require ( - axon v0.0.0 - axon/relay v0.0.0 + code.northwest.io/axon v0.0.0 + code.northwest.io/axon/relay v0.0.0 github.com/vmihailenco/msgpack/v5 v5.4.1 ) @@ -15,6 +15,6 @@ require ( ) replace ( - axon => ../../ - axon/relay => ../../relay + code.northwest.io/axon => ../../ + code.northwest.io/axon/relay => ../../relay ) diff --git a/cmd/axon/main.go b/cmd/axon/main.go index 9076687..bc7bd88 100644 --- a/cmd/axon/main.go +++ b/cmd/axon/main.go @@ -24,8 +24,8 @@ import ( "syscall" "time" - "axon" - ws "axon/relay/websocket" + "code.northwest.io/axon" + ws "code.northwest.io/axon/relay/websocket" "github.com/vmihailenco/msgpack/v5" ) diff --git a/go.mod b/go.mod index a9bafa6..047a2e6 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module axon +module code.northwest.io/axon go 1.25.5 diff --git a/go.sum b/go.sum index 2891988..29b0dda 100644 --- a/go.sum +++ b/go.sum @@ -1,6 +1,9 @@ github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= +github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= +github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= github.com/stretchr/testify v1.6.1 h1:hDPOHmpOpP40lSULcqw7IrRb/u7w6RpDC9399XyoNd0= +github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/vmihailenco/msgpack/v5 v5.4.1 h1:cQriyiUvjTwOHg8QZaPihLWeRAAVoCpE00IUPn0Bjt8= github.com/vmihailenco/msgpack/v5 v5.4.1/go.mod h1:GaZTsDaehaPpQVyxrf5mtQlH+pc21PIudVV/E3rRQok= github.com/vmihailenco/tagparser/v2 v2.0.0 h1:y09buUbR+b5aycVFQs/g70pqKVZNBmxwAhO7/IwNM9g= @@ -9,4 +12,6 @@ golang.org/x/crypto v0.48.0 h1:/VRzVqiRSggnhY7gNRxPauEQ5Drw9haKdM0jqfcCFts= golang.org/x/crypto v0.48.0/go.mod h1:r0kV5h3qnFPlQnBSrULhlsRfryS2pmewsg+XfMgkVos= golang.org/x/sys v0.41.0 h1:Ivj+2Cp/ylzLiEU89QhWblYnOE9zerudt9Ftecq2C6k= golang.org/x/sys v0.41.0/go.mod h1:OgkHotnGiDImocRcuBABYBEXf8A9a87e/uXjp9XT3ks= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= +gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= diff --git a/relay/go.mod b/relay/go.mod index a3d424a..6f7676f 100644 --- a/relay/go.mod +++ b/relay/go.mod @@ -1,9 +1,9 @@ -module axon/relay +module code.northwest.io/axon/relay go 1.25.5 require ( - axon v0.0.0 + code.northwest.io/axon v0.0.0 github.com/vmihailenco/msgpack/v5 v5.4.1 gopkg.in/yaml.v3 v3.0.1 modernc.org/sqlite v1.33.1 @@ -27,4 +27,4 @@ require ( modernc.org/token v1.1.0 // indirect ) -replace axon => ../ +replace code.northwest.io/axon => ../ diff --git a/relay/handler.go b/relay/handler.go index afd9622..c098a66 100644 --- a/relay/handler.go +++ b/relay/handler.go @@ -9,10 +9,10 @@ import ( "github.com/vmihailenco/msgpack/v5" - "axon" - "axon/relay/storage" - "axon/relay/subscription" - ws "axon/relay/websocket" + "code.northwest.io/axon" + "code.northwest.io/axon/relay/storage" + "code.northwest.io/axon/relay/subscription" + ws "code.northwest.io/axon/relay/websocket" ) // Wire protocol message type constants. diff --git a/relay/main.go b/relay/main.go index 2cfa034..099b28f 100644 --- a/relay/main.go +++ b/relay/main.go @@ -11,8 +11,8 @@ import ( "syscall" "time" - "axon/relay/storage" - "axon/relay/subscription" + "code.northwest.io/axon/relay/storage" + "code.northwest.io/axon/relay/subscription" ) func main() { diff --git a/relay/server.go b/relay/server.go index d4a1edd..9f716bf 100644 --- a/relay/server.go +++ b/relay/server.go @@ -9,9 +9,9 @@ import ( "net/http" "sync" - "axon/relay/storage" - "axon/relay/subscription" - ws "axon/relay/websocket" + "code.northwest.io/axon/relay/storage" + "code.northwest.io/axon/relay/subscription" + ws "code.northwest.io/axon/relay/websocket" ) // Server is the HTTP + WebSocket server for the Axon relay. diff --git a/relay/storage/events.go b/relay/storage/events.go index cf10097..0f642bb 100644 --- a/relay/storage/events.go +++ b/relay/storage/events.go @@ -7,7 +7,7 @@ import ( "fmt" "strings" - "axon" + "code.northwest.io/axon" ) // ErrDuplicate is returned by StoreEvent when the event ID already exists. diff --git a/relay/subscription/manager.go b/relay/subscription/manager.go index d8ba653..c9de403 100644 --- a/relay/subscription/manager.go +++ b/relay/subscription/manager.go @@ -6,7 +6,7 @@ import ( "sync" "time" - "axon" + "code.northwest.io/axon" ) // Subscription holds a single client subscription: an ID, a set of filters, -- cgit v1.2.3