-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
moving deprecated to code to separate folder
- Loading branch information
Showing
16 changed files
with
24 additions
and
6 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
(ns clj-brokee.hub.middlewares) | ||
|
||
(defrecord Message [meta data]) | ||
|
||
(def meta-wrap (fn [handler] | ||
(fn [message] | ||
(handler (map->Message {:meta {} | ||
:data message}))))) | ||
|
||
(def meta-unwrap (fn [handler] | ||
(fn [{:keys [data] :as message}] | ||
(handler data)))) |
File renamed without changes.
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
(ns clj-brokee.hub.transport.async | ||
#?(:cljs (:require-macros [cljs.core.async.macros :refer [go go-loop]])) | ||
(:require [clj-brokee.hub.core :as h] | ||
#?@(:clj [[clojure.core.async :refer [go go-loop] :as a]] | ||
:cljs [[cljs.core.async :as a]]))) | ||
|
||
(defrecord AsyncHubTransport []) |
File renamed without changes.
File renamed without changes.
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
(ns clj-brokee.pubsub.core) | ||
|
||
(defprotocol Pubsub | ||
(emit [this message]) | ||
(subscribe [this topic])) |
This file was deleted.
Oops, something went wrong.