simplexmq-6.5.0.8: SimpleXMQ message broker
Safe HaskellNone
LanguageHaskell2010

Simplex.Messaging.Notifications.Transport

Synopsis

Documentation

data NTFVersion Source #

Instances

Instances details
VersionScope NTFVersion Source # 
Instance details

Defined in Simplex.Messaging.Notifications.Transport

Protocol NTFVersion ErrorType NtfResponse Source # 
Instance details

Defined in Simplex.Messaging.Notifications.Protocol

ProtocolEncoding NTFVersion ErrorType NtfCmd Source # 
Instance details

Defined in Simplex.Messaging.Notifications.Protocol

Associated Types

type Tag NtfCmd 
Instance details

Defined in Simplex.Messaging.Notifications.Protocol

ProtocolEncoding NTFVersion ErrorType NtfResponse Source # 
Instance details

Defined in Simplex.Messaging.Notifications.Protocol

Associated Types

type Tag NtfResponse 
Instance details

Defined in Simplex.Messaging.Notifications.Protocol

NtfEntityI e => ProtocolEncoding NTFVersion ErrorType (NtfCommand e) Source # 
Instance details

Defined in Simplex.Messaging.Notifications.Protocol

Associated Types

type Tag (NtfCommand e) 
Instance details

Defined in Simplex.Messaging.Notifications.Protocol

pattern VersionNTF :: Word16 -> VersionNTF Source #

data NtfServerHandshake Source #

Constructors

NtfServerHandshake 

Fields

Instances

Instances details
Encoding NtfServerHandshake Source # 
Instance details

Defined in Simplex.Messaging.Notifications.Transport

Methods

smpEncode :: NtfServerHandshake -> ByteString Source #

smpDecode :: ByteString -> Either String NtfServerHandshake Source #

smpP :: Parser NtfServerHandshake Source #

data NtfClientHandshake Source #

Constructors

NtfClientHandshake 

Fields

Instances

Instances details
Encoding NtfClientHandshake Source # 
Instance details

Defined in Simplex.Messaging.Notifications.Transport

Methods

smpEncode :: NtfClientHandshake -> ByteString Source #

smpDecode :: ByteString -> Either String NtfClientHandshake Source #

smpP :: Parser NtfClientHandshake Source #

encodeAuthEncryptCmds :: Encoding a => VersionNTF -> Maybe a -> ByteString Source #

authEncryptCmdsP :: VersionNTF -> Parser a -> Parser (Maybe a) Source #

ntfServerHandshake :: Transport c => APrivateSignKey -> c 'TServer -> KeyPairX25519 -> KeyHash -> VersionRangeNTF -> ExceptT TransportError IO (THandleNTF c 'TServer) Source #

Notifcations server transport handshake.

ntfClientHandshake :: Transport c => c 'TClient -> KeyHash -> VersionRangeNTF -> Bool -> Maybe (ServiceCredentials, KeyPairEd25519) -> ExceptT TransportError IO (THandleNTF c 'TClient) Source #

Notifcations server client transport handshake.

ntfThHandle_ :: forall (c :: TransportPeer -> Type) (p :: TransportPeer). THandleNTF c p -> VersionNTF -> VersionRangeNTF -> Maybe (THandleAuth p) -> THandleNTF c p Source #

ntfTHandle :: forall c (p :: TransportPeer). Transport c => c p -> THandleNTF c p Source #