rename one of the directories (internal -> pkg)

This commit is contained in:
Dawid Wysokiński 2021-07-11 07:43:44 +02:00
parent 8849e1ced0
commit 4154d6c133
22 changed files with 7 additions and 7 deletions

View File

@ -13,8 +13,8 @@ import (
"github.com/sirupsen/logrus"
twhelpcron "github.com/tribalwarshelp/cron/internal/cron"
"github.com/tribalwarshelp/cron/internal/postgres"
twhelpcron "github.com/tribalwarshelp/cron/pkg/cron"
"github.com/tribalwarshelp/cron/pkg/postgres"
"github.com/joho/godotenv"
)

View File

@ -10,7 +10,7 @@ import (
"github.com/robfig/cron/v3"
"github.com/tribalwarshelp/cron/internal/cron/queue"
"github.com/tribalwarshelp/cron/pkg/cron/queue"
)
type Cron struct {
@ -29,7 +29,7 @@ func New(cfg *Config) (*Cron, error) {
if err != nil {
return nil, err
}
log := logrus.WithField("package", "internal/cron")
log := logrus.WithField("package", "pkg/cron")
c := &Cron{
Cron: cron.New(cron.WithChain(
cron.SkipIfStillRunning(

View File

@ -16,7 +16,7 @@ const (
Ennoblements = "ennoblements"
)
var log = logrus.WithField("package", "internal/cron/queue")
var log = logrus.WithField("package", "pkg/cron/queue")
type Queue interface {
Start(ctx context.Context) error

View File

@ -8,7 +8,7 @@ import (
"github.com/tribalwarshelp/shared/tw/twdataloader"
"github.com/tribalwarshelp/shared/tw/twmodel"
"github.com/tribalwarshelp/cron/internal/postgres"
"github.com/tribalwarshelp/cron/pkg/postgres"
)
type taskLoadServersAndUpdateData struct {

View File

@ -11,7 +11,7 @@ import (
"github.com/tribalwarshelp/shared/tw/twmodel"
)
var log = logrus.WithField("package", "internal/postgres")
var log = logrus.WithField("package", "pkg/postgres")
type Config struct {
LogQueries bool