Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
data AgentClient Source #
AgentClient | |
|
newAgentClient :: TVar Int -> AgentConfig -> STM AgentClient Source #
type AgentMonad m = (MonadUnliftIO m, MonadReader Env m, MonadError AgentErrorType m) Source #
getSMPServerClient :: forall m. AgentMonad m => AgentClient -> SMPServer -> m SMPClient Source #
closeSMPServerClients :: MonadUnliftIO m => AgentClient -> m () Source #
newReceiveQueue :: AgentMonad m => AgentClient -> SMPServer -> ConnAlias -> m (RcvQueue, SMPQueueInfo) Source #
subscribeQueue :: AgentMonad m => AgentClient -> RcvQueue -> ConnAlias -> m () Source #
sendConfirmation :: forall m. AgentMonad m => AgentClient -> SndQueue -> SenderPublicKey -> m () Source #
sendHello :: forall m. AgentMonad m => AgentClient -> SndQueue -> VerificationKey -> m () Source #
secureQueue :: AgentMonad m => AgentClient -> RcvQueue -> SenderPublicKey -> m () Source #
sendAgentMessage :: AgentMonad m => AgentClient -> SndQueue -> ByteString -> m () Source #
decryptAndVerify :: AgentMonad m => RcvQueue -> ByteString -> m ByteString Source #
verifyMessage :: AgentMonad m => Maybe VerificationKey -> ByteString -> m ByteString Source #
sendAck :: AgentMonad m => AgentClient -> RcvQueue -> m () Source #
suspendQueue :: AgentMonad m => AgentClient -> RcvQueue -> m () Source #
deleteQueue :: AgentMonad m => AgentClient -> RcvQueue -> m () Source #
logServer :: AgentMonad m => ByteString -> AgentClient -> SMPServer -> QueueId -> ByteString -> m () Source #
removeSubscription :: AgentMonad m => AgentClient -> ConnAlias -> m () Source #