From f39652d7ca3d013fdfd84d4fa787f8504c4bfe53 Mon Sep 17 00:00:00 2001 From: Oliver Wegner Date: Thu, 16 Jan 2020 14:32:34 +0100 Subject: [PATCH] fixing directory structure --- src/cljc/{ => clj_brokee}/.gitkeep-cljc | 0 src/cljc/{ => clj_brokee}/broker.cljc | 0 src/cljc/{ => clj_brokee}/broker/simple.cljc | 0 src/cljc/{ => clj_brokee}/consumer.cljc | 0 .../{ => clj_brokee}/consumer/simple.cljc | 0 src/cljc/{ => clj_brokee}/producer.cljc | 0 .../{ => clj_brokee}/producer/simple.cljc | 0 src/cljc/{ => clj_brokee}/util.cljc | 0 src/cljc/core.cljc | 26 ------------------- 9 files changed, 26 deletions(-) rename src/cljc/{ => clj_brokee}/.gitkeep-cljc (100%) rename src/cljc/{ => clj_brokee}/broker.cljc (100%) rename src/cljc/{ => clj_brokee}/broker/simple.cljc (100%) rename src/cljc/{ => clj_brokee}/consumer.cljc (100%) rename src/cljc/{ => clj_brokee}/consumer/simple.cljc (100%) rename src/cljc/{ => clj_brokee}/producer.cljc (100%) rename src/cljc/{ => clj_brokee}/producer/simple.cljc (100%) rename src/cljc/{ => clj_brokee}/util.cljc (100%) delete mode 100644 src/cljc/core.cljc diff --git a/src/cljc/.gitkeep-cljc b/src/cljc/clj_brokee/.gitkeep-cljc similarity index 100% rename from src/cljc/.gitkeep-cljc rename to src/cljc/clj_brokee/.gitkeep-cljc diff --git a/src/cljc/broker.cljc b/src/cljc/clj_brokee/broker.cljc similarity index 100% rename from src/cljc/broker.cljc rename to src/cljc/clj_brokee/broker.cljc diff --git a/src/cljc/broker/simple.cljc b/src/cljc/clj_brokee/broker/simple.cljc similarity index 100% rename from src/cljc/broker/simple.cljc rename to src/cljc/clj_brokee/broker/simple.cljc diff --git a/src/cljc/consumer.cljc b/src/cljc/clj_brokee/consumer.cljc similarity index 100% rename from src/cljc/consumer.cljc rename to src/cljc/clj_brokee/consumer.cljc diff --git a/src/cljc/consumer/simple.cljc b/src/cljc/clj_brokee/consumer/simple.cljc similarity index 100% rename from src/cljc/consumer/simple.cljc rename to src/cljc/clj_brokee/consumer/simple.cljc diff --git a/src/cljc/producer.cljc b/src/cljc/clj_brokee/producer.cljc similarity index 100% rename from src/cljc/producer.cljc rename to src/cljc/clj_brokee/producer.cljc diff --git a/src/cljc/producer/simple.cljc b/src/cljc/clj_brokee/producer/simple.cljc similarity index 100% rename from src/cljc/producer/simple.cljc rename to src/cljc/clj_brokee/producer/simple.cljc diff --git a/src/cljc/util.cljc b/src/cljc/clj_brokee/util.cljc similarity index 100% rename from src/cljc/util.cljc rename to src/cljc/clj_brokee/util.cljc diff --git a/src/cljc/core.cljc b/src/cljc/core.cljc deleted file mode 100644 index e9ba8b0..0000000 --- a/src/cljc/core.cljc +++ /dev/null @@ -1,26 +0,0 @@ -(ns clj-brokee.core - (:require [clj-brokee.util :as u])) - - - - -(defprotocol Publisher - (publish* [this data])) - -(defprotocol Subscriber - (handler [this])) - - -(defn publish [publisher topic message] - (publish* publisher {:topic topic - :message message})) - - -(defn subscribe [subscriber topics handler]) - - -(defn make-broker []) - -(defn make-publisher [broker]) - -(defn make-subscriber [broker topics handler])