chore: update the package name (github.com/tribalwarshelp/cron -> github.com/tribalwarshelp/dataupdater)
This commit is contained in:
parent
5bbe01fff6
commit
14a7b6a5bc
|
@ -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.
|
||||
|
|
|
@ -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() {
|
||||
|
|
|
@ -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() {
|
||||
|
|
2
go.mod
2
go.mod
|
@ -1,4 +1,4 @@
|
|||
module github.com/tribalwarshelp/cron
|
||||
module github.com/tribalwarshelp/dataupdater
|
||||
|
||||
go 1.16
|
||||
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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 {
|
||||
|
|
Reference in New Issue