From 14a7b6a5bc0aeba7a51f104e9c95ae0916e2d51c Mon Sep 17 00:00:00 2001 From: Kichiyaki Date: Sun, 11 Jul 2021 11:37:39 +0200 Subject: [PATCH] chore: update the package name (github.com/tribalwarshelp/cron -> github.com/tribalwarshelp/dataupdater) --- README.md | 4 ++-- cmd/cron/main.go | 8 ++++---- cmd/dataupdater/main.go | 6 +++--- go.mod | 2 +- pkg/cron/config.go | 2 +- pkg/cron/cron.go | 2 +- pkg/queue/task_load_servers_and_update_data.go | 2 +- 7 files changed, 13 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index 60e0f7d..6ddc812 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ -# datafetcher +# dataupdater -- Adds automatically new servers. +- Adds new servers automatically. - Fetches and updates server data (players, tribes, ODA, ODD, ODS, OD, conquers, configs). - Saves daily player/tribe stats, player/tribe history, tribe changes, player name changes, server stats. - Clears database from old player/tribe stats, player/tribe history. diff --git a/cmd/cron/main.go b/cmd/cron/main.go index 8116715..436d056 100644 --- a/cmd/cron/main.go +++ b/cmd/cron/main.go @@ -8,10 +8,10 @@ import ( "os/signal" "syscall" - "github.com/tribalwarshelp/cron/cmd/internal" - twhelpcron "github.com/tribalwarshelp/cron/pkg/cron" - "github.com/tribalwarshelp/cron/pkg/postgres" - "github.com/tribalwarshelp/cron/pkg/queue" + "github.com/tribalwarshelp/dataupdater/cmd/internal" + twhelpcron "github.com/tribalwarshelp/dataupdater/pkg/cron" + "github.com/tribalwarshelp/dataupdater/pkg/postgres" + "github.com/tribalwarshelp/dataupdater/pkg/queue" ) func main() { diff --git a/cmd/dataupdater/main.go b/cmd/dataupdater/main.go index 48837f0..0db1727 100644 --- a/cmd/dataupdater/main.go +++ b/cmd/dataupdater/main.go @@ -9,9 +9,9 @@ import ( "os/signal" "syscall" - "github.com/tribalwarshelp/cron/cmd/internal" - "github.com/tribalwarshelp/cron/pkg/postgres" - "github.com/tribalwarshelp/cron/pkg/queue" + "github.com/tribalwarshelp/dataupdater/cmd/internal" + "github.com/tribalwarshelp/dataupdater/pkg/postgres" + "github.com/tribalwarshelp/dataupdater/pkg/queue" ) func main() { diff --git a/go.mod b/go.mod index 268927e..4a473f5 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/tribalwarshelp/cron +module github.com/tribalwarshelp/dataupdater go 1.16 diff --git a/pkg/cron/config.go b/pkg/cron/config.go index 0ef790a..909f92c 100644 --- a/pkg/cron/config.go +++ b/pkg/cron/config.go @@ -4,7 +4,7 @@ import ( "github.com/go-pg/pg/v10" "github.com/pkg/errors" - "github.com/tribalwarshelp/cron/pkg/queue" + "github.com/tribalwarshelp/dataupdater/pkg/queue" ) type Config struct { diff --git a/pkg/cron/cron.go b/pkg/cron/cron.go index 8a69cb5..1b74636 100644 --- a/pkg/cron/cron.go +++ b/pkg/cron/cron.go @@ -10,7 +10,7 @@ import ( "github.com/robfig/cron/v3" - "github.com/tribalwarshelp/cron/pkg/queue" + "github.com/tribalwarshelp/dataupdater/pkg/queue" ) type Cron struct { diff --git a/pkg/queue/task_load_servers_and_update_data.go b/pkg/queue/task_load_servers_and_update_data.go index 13a71c8..6dbd3ec 100644 --- a/pkg/queue/task_load_servers_and_update_data.go +++ b/pkg/queue/task_load_servers_and_update_data.go @@ -8,7 +8,7 @@ import ( "github.com/tribalwarshelp/shared/tw/twdataloader" "github.com/tribalwarshelp/shared/tw/twmodel" - "github.com/tribalwarshelp/cron/pkg/postgres" + "github.com/tribalwarshelp/dataupdater/pkg/postgres" ) type taskLoadServersAndUpdateData struct {