-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: change every component usage to new one
- Loading branch information
Showing
41 changed files
with
535 additions
and
752 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
(ns back.api.ports.producers | ||
(:require [components.redis-publisher :as redis-publisher])) | ||
(:require [com.moclojer.components.publisher :as publisher])) | ||
|
||
(defn publish-mock-event [mock queue-name publisher] | ||
(redis-publisher/publish! publisher queue-name {:event mock})) | ||
(publisher/publish! publisher queue-name {:event mock})) | ||
|
||
(defn publish-mock-changed-event [mock-id publisher] | ||
(redis-publisher/publish! publisher "mock.changed" {:event {:mock-id mock-id}})) | ||
(publisher/publish! publisher "mock.changed" {:event {:mock-id mock-id}})) | ||
|
||
(defn verify-domain! | ||
[domain retrying? skip-data? publisher] | ||
(redis-publisher/publish! publisher "domain.verify" | ||
{:event {:domain domain | ||
:retrying? retrying? | ||
:skip-data? skip-data?}})) | ||
(publisher/publish! publisher "domain.verify" | ||
{:event {:domain domain | ||
:retrying? retrying? | ||
:skip-data? skip-data?}})) | ||
|
||
(defn verify-unified! | ||
[mocks publisher] | ||
(redis-publisher/publish! publisher "unified.verify" | ||
{:event {:mocks mocks}})) | ||
(publisher/publish! publisher "unified.verify" | ||
{:event {:mocks mocks}})) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,21 @@ | ||
(ns cloud-ops.api.ports.producers | ||
(:require [components.redis-publisher :as redis-publisher])) | ||
(:require [com.moclojer.components.publisher :as publisher])) | ||
|
||
(defn create-domain! | ||
[domain retrying? publisher] | ||
(redis-publisher/publish! publisher "domain.create" | ||
{:event {:domain domain | ||
:retrying? retrying?}})) | ||
(publisher/publish! publisher "domain.create" | ||
{:event {:domain domain | ||
:retrying? retrying?}})) | ||
|
||
(defn verify-domain! | ||
[domain retrying? skip-data? publisher] | ||
(redis-publisher/publish! publisher "domain.verify" | ||
{:event {:domain domain | ||
:retrying? retrying? | ||
:skip-data? skip-data?}})) | ||
(publisher/publish! publisher "domain.verify" | ||
{:event {:domain domain | ||
:retrying? retrying? | ||
:skip-data? skip-data?}})) | ||
|
||
(defn set-publication-status! | ||
[domain new-status publisher] | ||
(redis-publisher/publish! publisher "mock.publication" | ||
{:event {:domain domain | ||
:new-status new-status}})) | ||
(publisher/publish! publisher "mock.publication" | ||
{:event {:domain domain | ||
:new-status new-status}})) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.