Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- handshakeClientPeer :: forall vNumber vData r (m :: Type -> Type). Ord vNumber => VersionDataCodec Term vNumber vData -> (vData -> vData -> Accept vData) -> Versions vNumber vData r -> Client (Handshake vNumber Term) 'NonPipelined ('StPropose :: Handshake vNumber Term) m (Either (HandshakeProtocolError vNumber) (HandshakeResult r vNumber vData))
- decodeQueryResult :: (vNumber -> bytes -> Either Text vData) -> Map vNumber bytes -> HandshakeResult r vNumber vData
- encodeVersions :: forall vNumber r vParams vData. (vNumber -> vData -> vParams) -> Versions vNumber vData r -> Map vNumber vParams
- acceptOrRefuse :: forall vParams vNumber vData r. Ord vNumber => VersionDataCodec vParams vNumber vData -> (vData -> vData -> Accept vData) -> Versions vNumber vData r -> Map vNumber vParams -> Either (RefuseReason vNumber) (r, vNumber, vData)
Documentation
handshakeClientPeer :: forall vNumber vData r (m :: Type -> Type). Ord vNumber => VersionDataCodec Term vNumber vData -> (vData -> vData -> Accept vData) -> Versions vNumber vData r -> Client (Handshake vNumber Term) 'NonPipelined ('StPropose :: Handshake vNumber Term) m (Either (HandshakeProtocolError vNumber) (HandshakeResult r vNumber vData)) Source #
Handshake client which offers
to the
remote peer.Versions
vNumber vData
TODO: GADT encoding of the client (Handshake.Client
module).
decodeQueryResult :: (vNumber -> bytes -> Either Text vData) -> Map vNumber bytes -> HandshakeResult r vNumber vData Source #
encodeVersions :: forall vNumber r vParams vData. (vNumber -> vData -> vParams) -> Versions vNumber vData r -> Map vNumber vParams Source #
:: forall vParams vNumber vData r. Ord vNumber | |
=> VersionDataCodec vParams vNumber vData | |
-> (vData -> vData -> Accept vData) | |
-> Versions vNumber vData r | |
-> Map vNumber vParams | proposed versions received either with |
-> Either (RefuseReason vNumber) (r, vNumber, vData) |