Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
data QueueStatus Source #
Instances
Eq QueueStatus Source # | |
Defined in Simplex.Messaging.Server.QueueStore (==) :: QueueStatus -> QueueStatus -> Bool # (/=) :: QueueStatus -> QueueStatus -> Bool # |
class MonadQueueStore s m where Source #
addQueue :: s -> RecipientPublicKey -> (RecipientId, SenderId) -> m (Either ErrorType ()) Source #
getQueue :: s -> SParty (a :: Party) -> QueueId -> m (Either ErrorType QueueRec) Source #
secureQueue :: s -> RecipientId -> SenderPublicKey -> m (Either ErrorType ()) Source #
suspendQueue :: s -> RecipientId -> m (Either ErrorType ()) Source #
deleteQueue :: s -> RecipientId -> m (Either ErrorType ()) Source #
Instances
MonadQueueStore QueueStore STM Source # | |
Defined in Simplex.Messaging.Server.QueueStore.STM addQueue :: QueueStore -> RecipientPublicKey -> (RecipientId, SenderId) -> STM (Either ErrorType ()) Source # getQueue :: forall (a :: Party). QueueStore -> SParty a -> QueueId -> STM (Either ErrorType QueueRec) Source # secureQueue :: QueueStore -> RecipientId -> SenderPublicKey -> STM (Either ErrorType ()) Source # suspendQueue :: QueueStore -> RecipientId -> STM (Either ErrorType ()) Source # deleteQueue :: QueueStore -> RecipientId -> STM (Either ErrorType ()) Source # |
mkQueueRec :: RecipientPublicKey -> (RecipientId, SenderId) -> QueueRec Source #