From 5e3f3f13421887d3861ede5572a8539e42f3539e Mon Sep 17 00:00:00 2001 From: Denis Arh Date: Tue, 1 Oct 2019 17:51:06 +0200 Subject: [PATCH] Move internal/mail to pkg/mail --- compose/rest/notification.go | 2 +- compose/service/notification.go | 2 +- pkg/cli/helpers.go | 2 +- {internal => pkg}/mail/mail.go | 0 {internal => pkg}/mail/mail_mock_test.go | 0 {internal => pkg}/mail/mail_test.go | 0 system/service/auth_notification.go | 2 +- 7 files changed, 4 insertions(+), 4 deletions(-) rename {internal => pkg}/mail/mail.go (100%) rename {internal => pkg}/mail/mail_mock_test.go (100%) rename {internal => pkg}/mail/mail_test.go (100%) diff --git a/compose/rest/notification.go b/compose/rest/notification.go index 82341bf1b..564727e73 100644 --- a/compose/rest/notification.go +++ b/compose/rest/notification.go @@ -5,7 +5,7 @@ import ( "github.com/cortezaproject/corteza-server/compose/rest/request" "github.com/cortezaproject/corteza-server/compose/service" - "github.com/cortezaproject/corteza-server/internal/mail" + "github.com/cortezaproject/corteza-server/pkg/mail" "github.com/pkg/errors" gomail "gopkg.in/mail.v2" diff --git a/compose/service/notification.go b/compose/service/notification.go index 7665953c8..772b764c1 100644 --- a/compose/service/notification.go +++ b/compose/service/notification.go @@ -12,9 +12,9 @@ import ( "go.uber.org/zap/zapcore" gomail "gopkg.in/mail.v2" - "github.com/cortezaproject/corteza-server/internal/mail" httpClient "github.com/cortezaproject/corteza-server/pkg/http" "github.com/cortezaproject/corteza-server/pkg/logger" + "github.com/cortezaproject/corteza-server/pkg/mail" ) type ( diff --git a/pkg/cli/helpers.go b/pkg/cli/helpers.go index 5087bb4c5..bbf76f061 100644 --- a/pkg/cli/helpers.go +++ b/pkg/cli/helpers.go @@ -5,10 +5,10 @@ import ( "os" "time" - "github.com/cortezaproject/corteza-server/internal/mail" "github.com/cortezaproject/corteza-server/pkg/auth" "github.com/cortezaproject/corteza-server/pkg/cli/options" "github.com/cortezaproject/corteza-server/pkg/http" + "github.com/cortezaproject/corteza-server/pkg/mail" ) func InitGeneralServices(smtpOpt *options.SMTPOpt, jwtOpt *options.JWTOpt, httpClientOpt *options.HttpClientOpt) { diff --git a/internal/mail/mail.go b/pkg/mail/mail.go similarity index 100% rename from internal/mail/mail.go rename to pkg/mail/mail.go diff --git a/internal/mail/mail_mock_test.go b/pkg/mail/mail_mock_test.go similarity index 100% rename from internal/mail/mail_mock_test.go rename to pkg/mail/mail_mock_test.go diff --git a/internal/mail/mail_test.go b/pkg/mail/mail_test.go similarity index 100% rename from internal/mail/mail_test.go rename to pkg/mail/mail_test.go diff --git a/system/service/auth_notification.go b/system/service/auth_notification.go index 4d46d5a06..3a6fec0e5 100644 --- a/system/service/auth_notification.go +++ b/system/service/auth_notification.go @@ -9,8 +9,8 @@ import ( "go.uber.org/zap/zapcore" gomail "gopkg.in/mail.v2" - "github.com/cortezaproject/corteza-server/internal/mail" "github.com/cortezaproject/corteza-server/pkg/logger" + "github.com/cortezaproject/corteza-server/pkg/mail" ) type (