Safe Haskell | None |
---|---|
Language | Haskell2010 |
Unversioned protocol, used in tests and demo applications.
Synopsis
- data UnversionedProtocol = UnversionedProtocol
- data UnversionedProtocolData = UnversionedProtocolData
- unversionedHandshakeCodec :: forall (m :: Type -> Type). MonadST m => Codec (Handshake UnversionedProtocol Term) DeserialiseFailure m ByteString
- unversionedProtocolDataCodec :: VersionDataCodec Term UnversionedProtocol UnversionedProtocolData
- unversionedProtocol :: app -> Versions UnversionedProtocol UnversionedProtocolData app
- data DataFlowProtocolData = DataFlowProtocolData {}
- dataFlowProtocolDataCodec :: UnversionedProtocol -> CodecCBORTerm Text DataFlowProtocolData
- dataFlowProtocol :: DataFlow -> app -> Versions UnversionedProtocol DataFlowProtocolData app
Documentation
data UnversionedProtocol Source #
Version negotiation for an unversioned protocol. We only use this for tests and demos where proper versioning is excessive.
Instances
Show UnversionedProtocol Source # | |
Defined in Ouroboros.Network.Protocol.Handshake.Unversioned showsPrec :: Int -> UnversionedProtocol -> ShowS # show :: UnversionedProtocol -> String # showList :: [UnversionedProtocol] -> ShowS # | |
Eq UnversionedProtocol Source # | |
Defined in Ouroboros.Network.Protocol.Handshake.Unversioned (==) :: UnversionedProtocol -> UnversionedProtocol -> Bool # (/=) :: UnversionedProtocol -> UnversionedProtocol -> Bool # | |
Ord UnversionedProtocol Source # | |
Defined in Ouroboros.Network.Protocol.Handshake.Unversioned compare :: UnversionedProtocol -> UnversionedProtocol -> Ordering # (<) :: UnversionedProtocol -> UnversionedProtocol -> Bool # (<=) :: UnversionedProtocol -> UnversionedProtocol -> Bool # (>) :: UnversionedProtocol -> UnversionedProtocol -> Bool # (>=) :: UnversionedProtocol -> UnversionedProtocol -> Bool # max :: UnversionedProtocol -> UnversionedProtocol -> UnversionedProtocol # min :: UnversionedProtocol -> UnversionedProtocol -> UnversionedProtocol # |
data UnversionedProtocolData Source #
Instances
unversionedHandshakeCodec :: forall (m :: Type -> Type). MonadST m => Codec (Handshake UnversionedProtocol Term) DeserialiseFailure m ByteString Source #
Handshake
codec used in various tests.
unversionedProtocolDataCodec :: VersionDataCodec Term UnversionedProtocol UnversionedProtocolData Source #
unversionedProtocol :: app -> Versions UnversionedProtocol UnversionedProtocolData app Source #
Make a Versions
for an unversioned protocol. Only use this for
tests and demos where proper versioning is excessive.
data DataFlowProtocolData Source #
Alternative for UnversionedProtocolData
which contains DataFlow
.
Instances
dataFlowProtocolDataCodec :: UnversionedProtocol -> CodecCBORTerm Text DataFlowProtocolData Source #
dataFlowProtocol :: DataFlow -> app -> Versions UnversionedProtocol DataFlowProtocolData app Source #