From a2953e652190ac56a782c8d1bd2ea46c20a3d58b Mon Sep 17 00:00:00 2001 From: Pranav Shridhar Date: Wed, 20 Mar 2024 11:17:43 +0530 Subject: [PATCH] change mod init name --- backends/memory/memory_backend.go | 10 +++++----- backends/memory/memory_backend_helper_test.go | 4 ++-- backends/memory/memory_backend_test.go | 12 ++++++------ backends/postgres/postgres_backend.go | 10 +++++----- backends/postgres/postgres_backend_test.go | 14 +++++++------- backends/redis/redis_backend.go | 10 +++++----- backends/redis/redis_backend_test.go | 12 ++++++------ examples/add_future_postgres_job/main.go | 6 +++--- examples/add_job_with_custom_concurrency/main.go | 8 ++++---- examples/add_job_with_deadline/main.go | 8 ++++---- examples/add_job_with_timeout/main.go | 8 ++++---- examples/add_periodic_jobs/main.go | 6 +++--- examples/add_postgres_job/main.go | 8 ++++---- examples/add_redis_job/main.go | 8 ++++---- examples/start_processing_jobs/main.go | 8 ++++---- go.mod | 2 +- jobs/jobs.go | 2 +- neoq.go | 6 +++--- neoq_test.go | 12 ++++++------ 19 files changed, 77 insertions(+), 77 deletions(-) diff --git a/backends/memory/memory_backend.go b/backends/memory/memory_backend.go index 0528cb1..738d634 100644 --- a/backends/memory/memory_backend.go +++ b/backends/memory/memory_backend.go @@ -8,14 +8,14 @@ import ( "sync" "time" - "github.com/acaloiaro/neoq" - "github.com/acaloiaro/neoq/handler" - "github.com/acaloiaro/neoq/internal" - "github.com/acaloiaro/neoq/jobs" - "github.com/acaloiaro/neoq/logging" "github.com/guregu/null" "github.com/iancoleman/strcase" "github.com/jsuar/go-cron-descriptor/pkg/crondescriptor" + "github.com/pranavmodx/neoq-sqlite" + "github.com/pranavmodx/neoq-sqlite/handler" + "github.com/pranavmodx/neoq-sqlite/internal" + "github.com/pranavmodx/neoq-sqlite/jobs" + "github.com/pranavmodx/neoq-sqlite/logging" "github.com/robfig/cron" "golang.org/x/exp/slog" ) diff --git a/backends/memory/memory_backend_helper_test.go b/backends/memory/memory_backend_helper_test.go index c535484..4db945d 100644 --- a/backends/memory/memory_backend_helper_test.go +++ b/backends/memory/memory_backend_helper_test.go @@ -6,8 +6,8 @@ import ( "context" "sync" - "github.com/acaloiaro/neoq" - "github.com/acaloiaro/neoq/logging" + "github.com/pranavmodx/neoq-sqlite" + "github.com/pranavmodx/neoq-sqlite/logging" "github.com/robfig/cron" ) diff --git a/backends/memory/memory_backend_test.go b/backends/memory/memory_backend_test.go index ed4e703..647163f 100644 --- a/backends/memory/memory_backend_test.go +++ b/backends/memory/memory_backend_test.go @@ -10,13 +10,13 @@ import ( "testing" "time" - "github.com/acaloiaro/neoq" - "github.com/acaloiaro/neoq/backends/memory" - "github.com/acaloiaro/neoq/handler" - "github.com/acaloiaro/neoq/jobs" - "github.com/acaloiaro/neoq/logging" - "github.com/acaloiaro/neoq/testutils" "github.com/pkg/errors" + "github.com/pranavmodx/neoq-sqlite" + "github.com/pranavmodx/neoq-sqlite/backends/memory" + "github.com/pranavmodx/neoq-sqlite/handler" + "github.com/pranavmodx/neoq-sqlite/jobs" + "github.com/pranavmodx/neoq-sqlite/logging" + "github.com/pranavmodx/neoq-sqlite/testutils" "github.com/robfig/cron" "golang.org/x/exp/slog" ) diff --git a/backends/postgres/postgres_backend.go b/backends/postgres/postgres_backend.go index 247c4ba..d989545 100644 --- a/backends/postgres/postgres_backend.go +++ b/backends/postgres/postgres_backend.go @@ -10,11 +10,6 @@ import ( "sync" "time" - "github.com/acaloiaro/neoq" - "github.com/acaloiaro/neoq/handler" - "github.com/acaloiaro/neoq/internal" - "github.com/acaloiaro/neoq/jobs" - "github.com/acaloiaro/neoq/logging" "github.com/golang-migrate/migrate/v4" _ "github.com/golang-migrate/migrate/v4/database/postgres" // nolint: revive "github.com/golang-migrate/migrate/v4/source/iofs" @@ -24,6 +19,11 @@ import ( "github.com/jackc/pgx/v5/pgconn" "github.com/jackc/pgx/v5/pgxpool" "github.com/jsuar/go-cron-descriptor/pkg/crondescriptor" + "github.com/pranavmodx/neoq-sqlite" + "github.com/pranavmodx/neoq-sqlite/handler" + "github.com/pranavmodx/neoq-sqlite/internal" + "github.com/pranavmodx/neoq-sqlite/jobs" + "github.com/pranavmodx/neoq-sqlite/logging" "github.com/robfig/cron" "golang.org/x/exp/slices" "golang.org/x/exp/slog" diff --git a/backends/postgres/postgres_backend_test.go b/backends/postgres/postgres_backend_test.go index 9e2bcb5..4eb7889 100644 --- a/backends/postgres/postgres_backend_test.go +++ b/backends/postgres/postgres_backend_test.go @@ -12,15 +12,15 @@ import ( "testing" "time" - "github.com/acaloiaro/neoq" - "github.com/acaloiaro/neoq/backends/postgres" - "github.com/acaloiaro/neoq/handler" - "github.com/acaloiaro/neoq/internal" - "github.com/acaloiaro/neoq/jobs" - "github.com/acaloiaro/neoq/logging" - "github.com/acaloiaro/neoq/testutils" "github.com/jackc/pgx/v5" "github.com/jackc/pgx/v5/pgxpool" + "github.com/pranavmodx/neoq-sqlite" + "github.com/pranavmodx/neoq-sqlite/backends/postgres" + "github.com/pranavmodx/neoq-sqlite/handler" + "github.com/pranavmodx/neoq-sqlite/internal" + "github.com/pranavmodx/neoq-sqlite/jobs" + "github.com/pranavmodx/neoq-sqlite/logging" + "github.com/pranavmodx/neoq-sqlite/testutils" ) const ( diff --git a/backends/redis/redis_backend.go b/backends/redis/redis_backend.go index 2a45c56..f9cfc08 100644 --- a/backends/redis/redis_backend.go +++ b/backends/redis/redis_backend.go @@ -12,14 +12,14 @@ import ( "sync" "time" - "github.com/acaloiaro/neoq" - "github.com/acaloiaro/neoq/handler" - "github.com/acaloiaro/neoq/internal" - "github.com/acaloiaro/neoq/jobs" - "github.com/acaloiaro/neoq/logging" "github.com/hibiken/asynq" "github.com/iancoleman/strcase" "github.com/jsuar/go-cron-descriptor/pkg/crondescriptor" + "github.com/pranavmodx/neoq-sqlite" + "github.com/pranavmodx/neoq-sqlite/handler" + "github.com/pranavmodx/neoq-sqlite/internal" + "github.com/pranavmodx/neoq-sqlite/jobs" + "github.com/pranavmodx/neoq-sqlite/logging" "golang.org/x/exp/slog" ) diff --git a/backends/redis/redis_backend_test.go b/backends/redis/redis_backend_test.go index aefdb9c..e08f4a2 100644 --- a/backends/redis/redis_backend_test.go +++ b/backends/redis/redis_backend_test.go @@ -8,13 +8,13 @@ import ( "testing" "time" - "github.com/acaloiaro/neoq" - "github.com/acaloiaro/neoq/handler" - "github.com/acaloiaro/neoq/internal" - "github.com/acaloiaro/neoq/jobs" - "github.com/acaloiaro/neoq/logging" - "github.com/acaloiaro/neoq/testutils" "github.com/hibiken/asynq" + "github.com/pranavmodx/neoq-sqlite" + "github.com/pranavmodx/neoq-sqlite/handler" + "github.com/pranavmodx/neoq-sqlite/internal" + "github.com/pranavmodx/neoq-sqlite/jobs" + "github.com/pranavmodx/neoq-sqlite/logging" + "github.com/pranavmodx/neoq-sqlite/testutils" ) const ( diff --git a/examples/add_future_postgres_job/main.go b/examples/add_future_postgres_job/main.go index 2481c04..49d664e 100644 --- a/examples/add_future_postgres_job/main.go +++ b/examples/add_future_postgres_job/main.go @@ -5,9 +5,9 @@ import ( "log" "time" - "github.com/acaloiaro/neoq" - "github.com/acaloiaro/neoq/backends/postgres" - "github.com/acaloiaro/neoq/jobs" + "github.com/pranavmodx/neoq-sqlite" + "github.com/pranavmodx/neoq-sqlite/backends/postgres" + "github.com/pranavmodx/neoq-sqlite/jobs" ) func main() { diff --git a/examples/add_job_with_custom_concurrency/main.go b/examples/add_job_with_custom_concurrency/main.go index dd03aed..8746b41 100644 --- a/examples/add_job_with_custom_concurrency/main.go +++ b/examples/add_job_with_custom_concurrency/main.go @@ -4,10 +4,10 @@ import ( "context" "log" - "github.com/acaloiaro/neoq" - "github.com/acaloiaro/neoq/backends/memory" - "github.com/acaloiaro/neoq/handler" - "github.com/acaloiaro/neoq/jobs" + "github.com/pranavmodx/neoq-sqlite" + "github.com/pranavmodx/neoq-sqlite/backends/memory" + "github.com/pranavmodx/neoq-sqlite/handler" + "github.com/pranavmodx/neoq-sqlite/jobs" ) func main() { diff --git a/examples/add_job_with_deadline/main.go b/examples/add_job_with_deadline/main.go index 4c23850..55a0a04 100644 --- a/examples/add_job_with_deadline/main.go +++ b/examples/add_job_with_deadline/main.go @@ -5,10 +5,10 @@ import ( "log" "time" - "github.com/acaloiaro/neoq" - "github.com/acaloiaro/neoq/backends/memory" - "github.com/acaloiaro/neoq/handler" - "github.com/acaloiaro/neoq/jobs" + "github.com/pranavmodx/neoq-sqlite" + "github.com/pranavmodx/neoq-sqlite/backends/memory" + "github.com/pranavmodx/neoq-sqlite/handler" + "github.com/pranavmodx/neoq-sqlite/jobs" ) func main() { diff --git a/examples/add_job_with_timeout/main.go b/examples/add_job_with_timeout/main.go index 4733209..ff726f1 100644 --- a/examples/add_job_with_timeout/main.go +++ b/examples/add_job_with_timeout/main.go @@ -5,10 +5,10 @@ import ( "log" "time" - "github.com/acaloiaro/neoq" - "github.com/acaloiaro/neoq/backends/memory" - "github.com/acaloiaro/neoq/handler" - "github.com/acaloiaro/neoq/jobs" + "github.com/pranavmodx/neoq-sqlite" + "github.com/pranavmodx/neoq-sqlite/backends/memory" + "github.com/pranavmodx/neoq-sqlite/handler" + "github.com/pranavmodx/neoq-sqlite/jobs" ) func main() { diff --git a/examples/add_periodic_jobs/main.go b/examples/add_periodic_jobs/main.go index a40d6bc..124c400 100644 --- a/examples/add_periodic_jobs/main.go +++ b/examples/add_periodic_jobs/main.go @@ -5,9 +5,9 @@ import ( "log" "time" - "github.com/acaloiaro/neoq" - "github.com/acaloiaro/neoq/backends/memory" - "github.com/acaloiaro/neoq/handler" + "github.com/pranavmodx/neoq-sqlite" + "github.com/pranavmodx/neoq-sqlite/backends/memory" + "github.com/pranavmodx/neoq-sqlite/handler" ) func main() { diff --git a/examples/add_postgres_job/main.go b/examples/add_postgres_job/main.go index b99fdd1..2e2d036 100644 --- a/examples/add_postgres_job/main.go +++ b/examples/add_postgres_job/main.go @@ -4,10 +4,10 @@ import ( "context" "log" - "github.com/acaloiaro/neoq" - "github.com/acaloiaro/neoq/backends/postgres" - "github.com/acaloiaro/neoq/handler" - "github.com/acaloiaro/neoq/jobs" + "github.com/pranavmodx/neoq-sqlite" + "github.com/pranavmodx/neoq-sqlite/backends/postgres" + "github.com/pranavmodx/neoq-sqlite/handler" + "github.com/pranavmodx/neoq-sqlite/jobs" ) func main() { diff --git a/examples/add_redis_job/main.go b/examples/add_redis_job/main.go index 08eae44..bf16d43 100644 --- a/examples/add_redis_job/main.go +++ b/examples/add_redis_job/main.go @@ -4,10 +4,10 @@ import ( "context" "log" - "github.com/acaloiaro/neoq" - "github.com/acaloiaro/neoq/backends/redis" - "github.com/acaloiaro/neoq/handler" - "github.com/acaloiaro/neoq/jobs" + "github.com/pranavmodx/neoq-sqlite" + "github.com/pranavmodx/neoq-sqlite/backends/redis" + "github.com/pranavmodx/neoq-sqlite/handler" + "github.com/pranavmodx/neoq-sqlite/jobs" ) func main() { diff --git a/examples/start_processing_jobs/main.go b/examples/start_processing_jobs/main.go index 6d0e57c..05c8b7b 100644 --- a/examples/start_processing_jobs/main.go +++ b/examples/start_processing_jobs/main.go @@ -4,10 +4,10 @@ import ( "context" "log" - "github.com/acaloiaro/neoq" - "github.com/acaloiaro/neoq/backends/postgres" - "github.com/acaloiaro/neoq/handler" - "github.com/acaloiaro/neoq/jobs" + "github.com/pranavmodx/neoq-sqlite" + "github.com/pranavmodx/neoq-sqlite/backends/postgres" + "github.com/pranavmodx/neoq-sqlite/handler" + "github.com/pranavmodx/neoq-sqlite/jobs" ) func main() { diff --git a/go.mod b/go.mod index 7c1af7e..e3678ed 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/acaloiaro/neoq +module github.com/pranavmodx/neoq-sqlite go 1.21 diff --git a/jobs/jobs.go b/jobs/jobs.go index 16bb7dd..73f5f02 100644 --- a/jobs/jobs.go +++ b/jobs/jobs.go @@ -9,8 +9,8 @@ import ( "io" "time" - "github.com/acaloiaro/neoq/internal" "github.com/guregu/null" + "github.com/pranavmodx/neoq-sqlite/internal" ) var ( diff --git a/neoq.go b/neoq.go index f1022f1..7d72eac 100644 --- a/neoq.go +++ b/neoq.go @@ -5,9 +5,9 @@ import ( "errors" "time" - "github.com/acaloiaro/neoq/handler" - "github.com/acaloiaro/neoq/jobs" - "github.com/acaloiaro/neoq/logging" + "github.com/pranavmodx/neoq-sqlite/handler" + "github.com/pranavmodx/neoq-sqlite/jobs" + "github.com/pranavmodx/neoq-sqlite/logging" ) const ( diff --git a/neoq_test.go b/neoq_test.go index ebe6e44..896b3d7 100644 --- a/neoq_test.go +++ b/neoq_test.go @@ -9,12 +9,12 @@ import ( "testing" "time" - "github.com/acaloiaro/neoq" - "github.com/acaloiaro/neoq/backends/memory" - "github.com/acaloiaro/neoq/backends/postgres" - "github.com/acaloiaro/neoq/handler" - "github.com/acaloiaro/neoq/jobs" - "github.com/acaloiaro/neoq/testutils" + "github.com/pranavmodx/neoq-sqlite" + "github.com/pranavmodx/neoq-sqlite/backends/memory" + "github.com/pranavmodx/neoq-sqlite/backends/postgres" + "github.com/pranavmodx/neoq-sqlite/handler" + "github.com/pranavmodx/neoq-sqlite/jobs" + "github.com/pranavmodx/neoq-sqlite/testutils" ) var (