Safe Haskell | None |
---|---|
Language | Haskell2010 |
Simplex.Messaging.Server.QueueStore
Documentation
Constructors
QueueRec | |
Fields |
data QueueStatus Source #
Constructors
QueueActive | |
QueueOff |
Instances
Eq QueueStatus Source # | |
Defined in Simplex.Messaging.Server.QueueStore |
class MonadQueueStore s m where Source #
Methods
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 Methods 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 #