icepeak-0.7.1.0: A fast JSON document store with push notification support.

Safe HaskellNone
LanguageHaskell2010

Subscription

Documentation

data SubscriptionTree id conn Source #

Constructors

SubscriptionTree (HashMap id conn) (HashMap Text (SubscriptionTree id conn)) 
Instances
Functor (SubscriptionTree id) Source # 
Instance details

Defined in Subscription

Methods

fmap :: (a -> b) -> SubscriptionTree id a -> SubscriptionTree id b #

(<$) :: a -> SubscriptionTree id b -> SubscriptionTree id a #

(Eq id, Eq conn) => Eq (SubscriptionTree id conn) Source # 
Instance details

Defined in Subscription

Methods

(==) :: SubscriptionTree id conn -> SubscriptionTree id conn -> Bool #

(/=) :: SubscriptionTree id conn -> SubscriptionTree id conn -> Bool #

(Show id, Show conn) => Show (SubscriptionTree id conn) Source # 
Instance details

Defined in Subscription

Methods

showsPrec :: Int -> SubscriptionTree id conn -> ShowS #

show :: SubscriptionTree id conn -> String #

showList :: [SubscriptionTree id conn] -> ShowS #

broadcast :: (conn -> Value -> IO ()) -> [Text] -> Value -> SubscriptionTree id conn -> IO () Source #

broadcast' :: [Text] -> Value -> SubscriptionTree id conn -> [(conn, Value)] Source #

subscribe :: (Eq id, Hashable id) => [Text] -> id -> conn -> SubscriptionTree id conn -> SubscriptionTree id conn Source #

unsubscribe :: (Eq id, Hashable id) => [Text] -> id -> SubscriptionTree id conn -> SubscriptionTree id conn Source #