├── .air.toml ├── .env.EXAMPLE ├── .gitignore ├── .vscode └── launch.json ├── README.md ├── cmd ├── api │ └── main.go └── worker │ └── main.go ├── docs └── rest.http ├── go.mod ├── go.sum └── internal ├── contract ├── NewCampaign copy.go └── NewCampaign.go ├── domain └── campaign │ ├── campaign.go │ ├── campaign_test.go │ ├── repository.go │ ├── service.go │ └── service_test.go ├── endpoints ├── auth.go ├── campaigns_delete.go ├── campaigns_delete_test.go ├── campaigns_get_by_id.go ├── campaigns_get_by_id_test.go ├── campaigns_post.go ├── campaigns_post_test.go ├── campaigns_start.go ├── campaigns_start_test.go ├── handler.go ├── handler_error.go ├── handler_error_test.go └── setup_test.go ├── infrastructure ├── database │ ├── campaign_repository.go │ └── new_db.go └── mail │ └── send_mail.go ├── internal-errors ├── errors.go └── validator.go └── test └── internal-mock ├── campaign_repository_mock.go └── campaign_service_mock.go /.air.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StephanyBatista/EmailN/HEAD/.air.toml -------------------------------------------------------------------------------- /.env.EXAMPLE: -------------------------------------------------------------------------------- 1 | DATABASE="" 2 | KEYCLOAK="" -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StephanyBatista/EmailN/HEAD/.gitignore -------------------------------------------------------------------------------- /.vscode/launch.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StephanyBatista/EmailN/HEAD/.vscode/launch.json -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StephanyBatista/EmailN/HEAD/README.md -------------------------------------------------------------------------------- /cmd/api/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StephanyBatista/EmailN/HEAD/cmd/api/main.go -------------------------------------------------------------------------------- /cmd/worker/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StephanyBatista/EmailN/HEAD/cmd/worker/main.go -------------------------------------------------------------------------------- /docs/rest.http: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StephanyBatista/EmailN/HEAD/docs/rest.http -------------------------------------------------------------------------------- /go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StephanyBatista/EmailN/HEAD/go.mod -------------------------------------------------------------------------------- /go.sum: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StephanyBatista/EmailN/HEAD/go.sum -------------------------------------------------------------------------------- /internal/contract/NewCampaign copy.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StephanyBatista/EmailN/HEAD/internal/contract/NewCampaign copy.go -------------------------------------------------------------------------------- /internal/contract/NewCampaign.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StephanyBatista/EmailN/HEAD/internal/contract/NewCampaign.go -------------------------------------------------------------------------------- /internal/domain/campaign/campaign.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StephanyBatista/EmailN/HEAD/internal/domain/campaign/campaign.go -------------------------------------------------------------------------------- /internal/domain/campaign/campaign_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StephanyBatista/EmailN/HEAD/internal/domain/campaign/campaign_test.go -------------------------------------------------------------------------------- /internal/domain/campaign/repository.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StephanyBatista/EmailN/HEAD/internal/domain/campaign/repository.go -------------------------------------------------------------------------------- /internal/domain/campaign/service.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StephanyBatista/EmailN/HEAD/internal/domain/campaign/service.go -------------------------------------------------------------------------------- /internal/domain/campaign/service_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StephanyBatista/EmailN/HEAD/internal/domain/campaign/service_test.go -------------------------------------------------------------------------------- /internal/endpoints/auth.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StephanyBatista/EmailN/HEAD/internal/endpoints/auth.go -------------------------------------------------------------------------------- /internal/endpoints/campaigns_delete.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StephanyBatista/EmailN/HEAD/internal/endpoints/campaigns_delete.go -------------------------------------------------------------------------------- /internal/endpoints/campaigns_delete_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StephanyBatista/EmailN/HEAD/internal/endpoints/campaigns_delete_test.go -------------------------------------------------------------------------------- /internal/endpoints/campaigns_get_by_id.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StephanyBatista/EmailN/HEAD/internal/endpoints/campaigns_get_by_id.go -------------------------------------------------------------------------------- /internal/endpoints/campaigns_get_by_id_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StephanyBatista/EmailN/HEAD/internal/endpoints/campaigns_get_by_id_test.go -------------------------------------------------------------------------------- /internal/endpoints/campaigns_post.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StephanyBatista/EmailN/HEAD/internal/endpoints/campaigns_post.go -------------------------------------------------------------------------------- /internal/endpoints/campaigns_post_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StephanyBatista/EmailN/HEAD/internal/endpoints/campaigns_post_test.go -------------------------------------------------------------------------------- /internal/endpoints/campaigns_start.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StephanyBatista/EmailN/HEAD/internal/endpoints/campaigns_start.go -------------------------------------------------------------------------------- /internal/endpoints/campaigns_start_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StephanyBatista/EmailN/HEAD/internal/endpoints/campaigns_start_test.go -------------------------------------------------------------------------------- /internal/endpoints/handler.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StephanyBatista/EmailN/HEAD/internal/endpoints/handler.go -------------------------------------------------------------------------------- /internal/endpoints/handler_error.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StephanyBatista/EmailN/HEAD/internal/endpoints/handler_error.go -------------------------------------------------------------------------------- /internal/endpoints/handler_error_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StephanyBatista/EmailN/HEAD/internal/endpoints/handler_error_test.go -------------------------------------------------------------------------------- /internal/endpoints/setup_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StephanyBatista/EmailN/HEAD/internal/endpoints/setup_test.go -------------------------------------------------------------------------------- /internal/infrastructure/database/campaign_repository.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StephanyBatista/EmailN/HEAD/internal/infrastructure/database/campaign_repository.go -------------------------------------------------------------------------------- /internal/infrastructure/database/new_db.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StephanyBatista/EmailN/HEAD/internal/infrastructure/database/new_db.go -------------------------------------------------------------------------------- /internal/infrastructure/mail/send_mail.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StephanyBatista/EmailN/HEAD/internal/infrastructure/mail/send_mail.go -------------------------------------------------------------------------------- /internal/internal-errors/errors.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StephanyBatista/EmailN/HEAD/internal/internal-errors/errors.go -------------------------------------------------------------------------------- /internal/internal-errors/validator.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StephanyBatista/EmailN/HEAD/internal/internal-errors/validator.go -------------------------------------------------------------------------------- /internal/test/internal-mock/campaign_repository_mock.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StephanyBatista/EmailN/HEAD/internal/test/internal-mock/campaign_repository_mock.go -------------------------------------------------------------------------------- /internal/test/internal-mock/campaign_service_mock.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StephanyBatista/EmailN/HEAD/internal/test/internal-mock/campaign_service_mock.go --------------------------------------------------------------------------------