rename one of the directories (internal -> pkg)
This commit is contained in:
parent
8849e1ced0
commit
4154d6c133
4
main.go
4
main.go
|
@ -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"
|
||||
)
|
||||
|
|
|
@ -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(
|
|
@ -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
|
|
@ -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 {
|
|
@ -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
|
Reference in New Issue