From fe5aabf7b3815b60a48382076f7f453e065f15f2 Mon Sep 17 00:00:00 2001 From: Bastean Date: Sun, 26 May 2024 12:55:58 -0300 Subject: [PATCH] refactor(context): rename folders using plural names instead of the prefix s in shared module --- pkg/context/shared/domain/{saggregate => aggregates}/root.go | 0 pkg/context/shared/domain/{serror => errors}/alreadyExist.go | 0 pkg/context/shared/domain/{serror => errors}/bubble.go | 0 pkg/context/shared/domain/{serror => errors}/bubbleUp.go | 0 pkg/context/shared/domain/{serror => errors}/failure.go | 0 pkg/context/shared/domain/{serror => errors}/internal.go | 0 pkg/context/shared/domain/{serror => errors}/invalidValue.go | 0 pkg/context/shared/domain/{serror => errors}/notExist.go | 0 pkg/context/shared/domain/{smessage => messages}/message.go | 0 .../shared/domain/{smessage => messages}/message.routing.key.go | 0 pkg/context/shared/domain/{smodel => models}/broker.go | 0 pkg/context/shared/domain/{smodel => models}/commandHandler.go | 0 pkg/context/shared/domain/{smodel => models}/consumer.go | 0 pkg/context/shared/domain/{smodel => models}/logger.go | 0 pkg/context/shared/domain/{smodel => models}/queryHandler.go | 0 pkg/context/shared/domain/{smodel => models}/useCase.go | 0 pkg/context/shared/domain/{smodel => models}/valueObject.go | 0 pkg/context/shared/domain/{squeue => queues}/queue.go | 0 pkg/context/shared/domain/{squeue => queues}/queue.name.go | 0 pkg/context/shared/domain/{srouter => routers}/router.go | 0 pkg/context/shared/domain/{sservice => services}/create.go | 0 .../shared/domain/{sservice => services}/defaultContext.go | 0 pkg/context/shared/domain/{sservice => services}/hasNoQueue.go | 0 pkg/context/shared/domain/{sservice => services}/panicOnError.go | 0 pkg/context/shared/domain/{stype => types}/empty.go | 0 pkg/context/shared/domain/{svalueobj => valueobjs}/email.go | 0 pkg/context/shared/domain/{svalueobj => valueobjs}/id.go | 0 .../{sauthentication => authentications}/authentication.go | 0 .../{scommunication => communications}/broker.mock.go | 0 .../{scommunication => communications}/consumer.mock.go | 0 .../{scommunication => communications}/rabbitmq.broker_test.go | 0 .../infrastructure/{scommunication => communications}/rabbitmq.go | 0 pkg/context/shared/infrastructure/{slogger => loggers}/logger.go | 0 .../shared/infrastructure/{slogger => loggers}/logger.mock.go | 0 .../infrastructure/{spersistence => persistences}/mongo.error.go | 0 .../shared/infrastructure/{spersistence => persistences}/mongo.go | 0 .../shared/infrastructure/{stransport => transports}/smtp.go | 0 37 files changed, 0 insertions(+), 0 deletions(-) rename pkg/context/shared/domain/{saggregate => aggregates}/root.go (100%) rename pkg/context/shared/domain/{serror => errors}/alreadyExist.go (100%) rename pkg/context/shared/domain/{serror => errors}/bubble.go (100%) rename pkg/context/shared/domain/{serror => errors}/bubbleUp.go (100%) rename pkg/context/shared/domain/{serror => errors}/failure.go (100%) rename pkg/context/shared/domain/{serror => errors}/internal.go (100%) rename pkg/context/shared/domain/{serror => errors}/invalidValue.go (100%) rename pkg/context/shared/domain/{serror => errors}/notExist.go (100%) rename pkg/context/shared/domain/{smessage => messages}/message.go (100%) rename pkg/context/shared/domain/{smessage => messages}/message.routing.key.go (100%) rename pkg/context/shared/domain/{smodel => models}/broker.go (100%) rename pkg/context/shared/domain/{smodel => models}/commandHandler.go (100%) rename pkg/context/shared/domain/{smodel => models}/consumer.go (100%) rename pkg/context/shared/domain/{smodel => models}/logger.go (100%) rename pkg/context/shared/domain/{smodel => models}/queryHandler.go (100%) rename pkg/context/shared/domain/{smodel => models}/useCase.go (100%) rename pkg/context/shared/domain/{smodel => models}/valueObject.go (100%) rename pkg/context/shared/domain/{squeue => queues}/queue.go (100%) rename pkg/context/shared/domain/{squeue => queues}/queue.name.go (100%) rename pkg/context/shared/domain/{srouter => routers}/router.go (100%) rename pkg/context/shared/domain/{sservice => services}/create.go (100%) rename pkg/context/shared/domain/{sservice => services}/defaultContext.go (100%) rename pkg/context/shared/domain/{sservice => services}/hasNoQueue.go (100%) rename pkg/context/shared/domain/{sservice => services}/panicOnError.go (100%) rename pkg/context/shared/domain/{stype => types}/empty.go (100%) rename pkg/context/shared/domain/{svalueobj => valueobjs}/email.go (100%) rename pkg/context/shared/domain/{svalueobj => valueobjs}/id.go (100%) rename pkg/context/shared/infrastructure/{sauthentication => authentications}/authentication.go (100%) rename pkg/context/shared/infrastructure/{scommunication => communications}/broker.mock.go (100%) rename pkg/context/shared/infrastructure/{scommunication => communications}/consumer.mock.go (100%) rename pkg/context/shared/infrastructure/{scommunication => communications}/rabbitmq.broker_test.go (100%) rename pkg/context/shared/infrastructure/{scommunication => communications}/rabbitmq.go (100%) rename pkg/context/shared/infrastructure/{slogger => loggers}/logger.go (100%) rename pkg/context/shared/infrastructure/{slogger => loggers}/logger.mock.go (100%) rename pkg/context/shared/infrastructure/{spersistence => persistences}/mongo.error.go (100%) rename pkg/context/shared/infrastructure/{spersistence => persistences}/mongo.go (100%) rename pkg/context/shared/infrastructure/{stransport => transports}/smtp.go (100%) diff --git a/pkg/context/shared/domain/saggregate/root.go b/pkg/context/shared/domain/aggregates/root.go similarity index 100% rename from pkg/context/shared/domain/saggregate/root.go rename to pkg/context/shared/domain/aggregates/root.go diff --git a/pkg/context/shared/domain/serror/alreadyExist.go b/pkg/context/shared/domain/errors/alreadyExist.go similarity index 100% rename from pkg/context/shared/domain/serror/alreadyExist.go rename to pkg/context/shared/domain/errors/alreadyExist.go diff --git a/pkg/context/shared/domain/serror/bubble.go b/pkg/context/shared/domain/errors/bubble.go similarity index 100% rename from pkg/context/shared/domain/serror/bubble.go rename to pkg/context/shared/domain/errors/bubble.go diff --git a/pkg/context/shared/domain/serror/bubbleUp.go b/pkg/context/shared/domain/errors/bubbleUp.go similarity index 100% rename from pkg/context/shared/domain/serror/bubbleUp.go rename to pkg/context/shared/domain/errors/bubbleUp.go diff --git a/pkg/context/shared/domain/serror/failure.go b/pkg/context/shared/domain/errors/failure.go similarity index 100% rename from pkg/context/shared/domain/serror/failure.go rename to pkg/context/shared/domain/errors/failure.go diff --git a/pkg/context/shared/domain/serror/internal.go b/pkg/context/shared/domain/errors/internal.go similarity index 100% rename from pkg/context/shared/domain/serror/internal.go rename to pkg/context/shared/domain/errors/internal.go diff --git a/pkg/context/shared/domain/serror/invalidValue.go b/pkg/context/shared/domain/errors/invalidValue.go similarity index 100% rename from pkg/context/shared/domain/serror/invalidValue.go rename to pkg/context/shared/domain/errors/invalidValue.go diff --git a/pkg/context/shared/domain/serror/notExist.go b/pkg/context/shared/domain/errors/notExist.go similarity index 100% rename from pkg/context/shared/domain/serror/notExist.go rename to pkg/context/shared/domain/errors/notExist.go diff --git a/pkg/context/shared/domain/smessage/message.go b/pkg/context/shared/domain/messages/message.go similarity index 100% rename from pkg/context/shared/domain/smessage/message.go rename to pkg/context/shared/domain/messages/message.go diff --git a/pkg/context/shared/domain/smessage/message.routing.key.go b/pkg/context/shared/domain/messages/message.routing.key.go similarity index 100% rename from pkg/context/shared/domain/smessage/message.routing.key.go rename to pkg/context/shared/domain/messages/message.routing.key.go diff --git a/pkg/context/shared/domain/smodel/broker.go b/pkg/context/shared/domain/models/broker.go similarity index 100% rename from pkg/context/shared/domain/smodel/broker.go rename to pkg/context/shared/domain/models/broker.go diff --git a/pkg/context/shared/domain/smodel/commandHandler.go b/pkg/context/shared/domain/models/commandHandler.go similarity index 100% rename from pkg/context/shared/domain/smodel/commandHandler.go rename to pkg/context/shared/domain/models/commandHandler.go diff --git a/pkg/context/shared/domain/smodel/consumer.go b/pkg/context/shared/domain/models/consumer.go similarity index 100% rename from pkg/context/shared/domain/smodel/consumer.go rename to pkg/context/shared/domain/models/consumer.go diff --git a/pkg/context/shared/domain/smodel/logger.go b/pkg/context/shared/domain/models/logger.go similarity index 100% rename from pkg/context/shared/domain/smodel/logger.go rename to pkg/context/shared/domain/models/logger.go diff --git a/pkg/context/shared/domain/smodel/queryHandler.go b/pkg/context/shared/domain/models/queryHandler.go similarity index 100% rename from pkg/context/shared/domain/smodel/queryHandler.go rename to pkg/context/shared/domain/models/queryHandler.go diff --git a/pkg/context/shared/domain/smodel/useCase.go b/pkg/context/shared/domain/models/useCase.go similarity index 100% rename from pkg/context/shared/domain/smodel/useCase.go rename to pkg/context/shared/domain/models/useCase.go diff --git a/pkg/context/shared/domain/smodel/valueObject.go b/pkg/context/shared/domain/models/valueObject.go similarity index 100% rename from pkg/context/shared/domain/smodel/valueObject.go rename to pkg/context/shared/domain/models/valueObject.go diff --git a/pkg/context/shared/domain/squeue/queue.go b/pkg/context/shared/domain/queues/queue.go similarity index 100% rename from pkg/context/shared/domain/squeue/queue.go rename to pkg/context/shared/domain/queues/queue.go diff --git a/pkg/context/shared/domain/squeue/queue.name.go b/pkg/context/shared/domain/queues/queue.name.go similarity index 100% rename from pkg/context/shared/domain/squeue/queue.name.go rename to pkg/context/shared/domain/queues/queue.name.go diff --git a/pkg/context/shared/domain/srouter/router.go b/pkg/context/shared/domain/routers/router.go similarity index 100% rename from pkg/context/shared/domain/srouter/router.go rename to pkg/context/shared/domain/routers/router.go diff --git a/pkg/context/shared/domain/sservice/create.go b/pkg/context/shared/domain/services/create.go similarity index 100% rename from pkg/context/shared/domain/sservice/create.go rename to pkg/context/shared/domain/services/create.go diff --git a/pkg/context/shared/domain/sservice/defaultContext.go b/pkg/context/shared/domain/services/defaultContext.go similarity index 100% rename from pkg/context/shared/domain/sservice/defaultContext.go rename to pkg/context/shared/domain/services/defaultContext.go diff --git a/pkg/context/shared/domain/sservice/hasNoQueue.go b/pkg/context/shared/domain/services/hasNoQueue.go similarity index 100% rename from pkg/context/shared/domain/sservice/hasNoQueue.go rename to pkg/context/shared/domain/services/hasNoQueue.go diff --git a/pkg/context/shared/domain/sservice/panicOnError.go b/pkg/context/shared/domain/services/panicOnError.go similarity index 100% rename from pkg/context/shared/domain/sservice/panicOnError.go rename to pkg/context/shared/domain/services/panicOnError.go diff --git a/pkg/context/shared/domain/stype/empty.go b/pkg/context/shared/domain/types/empty.go similarity index 100% rename from pkg/context/shared/domain/stype/empty.go rename to pkg/context/shared/domain/types/empty.go diff --git a/pkg/context/shared/domain/svalueobj/email.go b/pkg/context/shared/domain/valueobjs/email.go similarity index 100% rename from pkg/context/shared/domain/svalueobj/email.go rename to pkg/context/shared/domain/valueobjs/email.go diff --git a/pkg/context/shared/domain/svalueobj/id.go b/pkg/context/shared/domain/valueobjs/id.go similarity index 100% rename from pkg/context/shared/domain/svalueobj/id.go rename to pkg/context/shared/domain/valueobjs/id.go diff --git a/pkg/context/shared/infrastructure/sauthentication/authentication.go b/pkg/context/shared/infrastructure/authentications/authentication.go similarity index 100% rename from pkg/context/shared/infrastructure/sauthentication/authentication.go rename to pkg/context/shared/infrastructure/authentications/authentication.go diff --git a/pkg/context/shared/infrastructure/scommunication/broker.mock.go b/pkg/context/shared/infrastructure/communications/broker.mock.go similarity index 100% rename from pkg/context/shared/infrastructure/scommunication/broker.mock.go rename to pkg/context/shared/infrastructure/communications/broker.mock.go diff --git a/pkg/context/shared/infrastructure/scommunication/consumer.mock.go b/pkg/context/shared/infrastructure/communications/consumer.mock.go similarity index 100% rename from pkg/context/shared/infrastructure/scommunication/consumer.mock.go rename to pkg/context/shared/infrastructure/communications/consumer.mock.go diff --git a/pkg/context/shared/infrastructure/scommunication/rabbitmq.broker_test.go b/pkg/context/shared/infrastructure/communications/rabbitmq.broker_test.go similarity index 100% rename from pkg/context/shared/infrastructure/scommunication/rabbitmq.broker_test.go rename to pkg/context/shared/infrastructure/communications/rabbitmq.broker_test.go diff --git a/pkg/context/shared/infrastructure/scommunication/rabbitmq.go b/pkg/context/shared/infrastructure/communications/rabbitmq.go similarity index 100% rename from pkg/context/shared/infrastructure/scommunication/rabbitmq.go rename to pkg/context/shared/infrastructure/communications/rabbitmq.go diff --git a/pkg/context/shared/infrastructure/slogger/logger.go b/pkg/context/shared/infrastructure/loggers/logger.go similarity index 100% rename from pkg/context/shared/infrastructure/slogger/logger.go rename to pkg/context/shared/infrastructure/loggers/logger.go diff --git a/pkg/context/shared/infrastructure/slogger/logger.mock.go b/pkg/context/shared/infrastructure/loggers/logger.mock.go similarity index 100% rename from pkg/context/shared/infrastructure/slogger/logger.mock.go rename to pkg/context/shared/infrastructure/loggers/logger.mock.go diff --git a/pkg/context/shared/infrastructure/spersistence/mongo.error.go b/pkg/context/shared/infrastructure/persistences/mongo.error.go similarity index 100% rename from pkg/context/shared/infrastructure/spersistence/mongo.error.go rename to pkg/context/shared/infrastructure/persistences/mongo.error.go diff --git a/pkg/context/shared/infrastructure/spersistence/mongo.go b/pkg/context/shared/infrastructure/persistences/mongo.go similarity index 100% rename from pkg/context/shared/infrastructure/spersistence/mongo.go rename to pkg/context/shared/infrastructure/persistences/mongo.go diff --git a/pkg/context/shared/infrastructure/stransport/smtp.go b/pkg/context/shared/infrastructure/transports/smtp.go similarity index 100% rename from pkg/context/shared/infrastructure/stransport/smtp.go rename to pkg/context/shared/infrastructure/transports/smtp.go