| Safe Haskell | None |
|---|---|
| Language | Haskell98 |
Network.AMQP.Types
Description
This module contains data-types specified in the AMQP spec
Synopsis
- data AMQPException
- type Octet = Word8
- type Bit = Bool
- type ChannelID = ShortInt
- type PayloadSize = LongInt
- type ShortInt = Word16
- type LongInt = Word32
- type LongLongInt = Word64
- newtype ShortString = ShortString Text
- newtype LongString = LongString ByteString
- type ConsumerTag = Text
- type Timestamp = Word64
- data FieldTable = FieldTable (Map Text FieldValue)
- data FieldValue
- type Decimals = Octet
- data DecimalValue = DecimalValue Decimals LongInt
- data ConfirmationResult
- data CloseType
Documentation
data AMQPException #
Constructors
| ChannelClosedException CloseType String | the |
| ConnectionClosedException CloseType String | String may contain a reason |
| AllChannelsAllocatedException Int | the |
Instances
| Eq AMQPException # | |
Defined in Network.AMQP.Types Methods (==) :: AMQPException -> AMQPException -> Bool # (/=) :: AMQPException -> AMQPException -> Bool # | |
| Ord AMQPException # | |
Defined in Network.AMQP.Types Methods compare :: AMQPException -> AMQPException -> Ordering # (<) :: AMQPException -> AMQPException -> Bool # (<=) :: AMQPException -> AMQPException -> Bool # (>) :: AMQPException -> AMQPException -> Bool # (>=) :: AMQPException -> AMQPException -> Bool # max :: AMQPException -> AMQPException -> AMQPException # min :: AMQPException -> AMQPException -> AMQPException # | |
| Show AMQPException # | |
Defined in Network.AMQP.Types Methods showsPrec :: Int -> AMQPException -> ShowS # show :: AMQPException -> String # showList :: [AMQPException] -> ShowS # | |
| Exception AMQPException # | |
Defined in Network.AMQP.Types Methods toException :: AMQPException -> SomeException # fromException :: SomeException -> Maybe AMQPException # displayException :: AMQPException -> String # | |
type PayloadSize = LongInt #
type LongLongInt = Word64 #
newtype ShortString #
Constructors
| ShortString Text |
Instances
| Eq ShortString # | |
Defined in Network.AMQP.Types | |
| Ord ShortString # | |
Defined in Network.AMQP.Types Methods compare :: ShortString -> ShortString -> Ordering # (<) :: ShortString -> ShortString -> Bool # (<=) :: ShortString -> ShortString -> Bool # (>) :: ShortString -> ShortString -> Bool # (>=) :: ShortString -> ShortString -> Bool # max :: ShortString -> ShortString -> ShortString # min :: ShortString -> ShortString -> ShortString # | |
| Read ShortString # | |
Defined in Network.AMQP.Types Methods readsPrec :: Int -> ReadS ShortString # readList :: ReadS [ShortString] # readPrec :: ReadPrec ShortString # readListPrec :: ReadPrec [ShortString] # | |
| Show ShortString # | |
Defined in Network.AMQP.Types Methods showsPrec :: Int -> ShortString -> ShowS # show :: ShortString -> String # showList :: [ShortString] -> ShowS # | |
| Binary ShortString # | |
Defined in Network.AMQP.Types | |
newtype LongString #
Constructors
| LongString ByteString |
Instances
| Eq LongString # | |
Defined in Network.AMQP.Types | |
| Ord LongString # | |
Defined in Network.AMQP.Types Methods compare :: LongString -> LongString -> Ordering # (<) :: LongString -> LongString -> Bool # (<=) :: LongString -> LongString -> Bool # (>) :: LongString -> LongString -> Bool # (>=) :: LongString -> LongString -> Bool # max :: LongString -> LongString -> LongString # min :: LongString -> LongString -> LongString # | |
| Read LongString # | |
Defined in Network.AMQP.Types Methods readsPrec :: Int -> ReadS LongString # readList :: ReadS [LongString] # readPrec :: ReadPrec LongString # readListPrec :: ReadPrec [LongString] # | |
| Show LongString # | |
Defined in Network.AMQP.Types Methods showsPrec :: Int -> LongString -> ShowS # show :: LongString -> String # showList :: [LongString] -> ShowS # | |
| Binary LongString # | |
Defined in Network.AMQP.Types | |
type ConsumerTag = Text #
data FieldTable #
Keys must be shorter than 256 bytes when encoded as UTF-8
Constructors
| FieldTable (Map Text FieldValue) |
Instances
| Eq FieldTable # | |
Defined in Network.AMQP.Types | |
| Ord FieldTable # | |
Defined in Network.AMQP.Types Methods compare :: FieldTable -> FieldTable -> Ordering # (<) :: FieldTable -> FieldTable -> Bool # (<=) :: FieldTable -> FieldTable -> Bool # (>) :: FieldTable -> FieldTable -> Bool # (>=) :: FieldTable -> FieldTable -> Bool # max :: FieldTable -> FieldTable -> FieldTable # min :: FieldTable -> FieldTable -> FieldTable # | |
| Read FieldTable # | |
Defined in Network.AMQP.Types Methods readsPrec :: Int -> ReadS FieldTable # readList :: ReadS [FieldTable] # readPrec :: ReadPrec FieldTable # readListPrec :: ReadPrec [FieldTable] # | |
| Show FieldTable # | |
Defined in Network.AMQP.Types Methods showsPrec :: Int -> FieldTable -> ShowS # show :: FieldTable -> String # showList :: [FieldTable] -> ShowS # | |
| Binary FieldTable # | |
Defined in Network.AMQP.Types | |
data FieldValue #
Constructors
Instances
| Eq FieldValue # | |
Defined in Network.AMQP.Types | |
| Ord FieldValue # | |
Defined in Network.AMQP.Types Methods compare :: FieldValue -> FieldValue -> Ordering # (<) :: FieldValue -> FieldValue -> Bool # (<=) :: FieldValue -> FieldValue -> Bool # (>) :: FieldValue -> FieldValue -> Bool # (>=) :: FieldValue -> FieldValue -> Bool # max :: FieldValue -> FieldValue -> FieldValue # min :: FieldValue -> FieldValue -> FieldValue # | |
| Read FieldValue # | |
Defined in Network.AMQP.Types Methods readsPrec :: Int -> ReadS FieldValue # readList :: ReadS [FieldValue] # readPrec :: ReadPrec FieldValue # readListPrec :: ReadPrec [FieldValue] # | |
| Show FieldValue # | |
Defined in Network.AMQP.Types Methods showsPrec :: Int -> FieldValue -> ShowS # show :: FieldValue -> String # showList :: [FieldValue] -> ShowS # | |
| Binary FieldValue # | |
Defined in Network.AMQP.Types | |
data DecimalValue #
Constructors
| DecimalValue Decimals LongInt |
Instances
| Eq DecimalValue # | |
Defined in Network.AMQP.Types | |
| Ord DecimalValue # | |
Defined in Network.AMQP.Types Methods compare :: DecimalValue -> DecimalValue -> Ordering # (<) :: DecimalValue -> DecimalValue -> Bool # (<=) :: DecimalValue -> DecimalValue -> Bool # (>) :: DecimalValue -> DecimalValue -> Bool # (>=) :: DecimalValue -> DecimalValue -> Bool # max :: DecimalValue -> DecimalValue -> DecimalValue # min :: DecimalValue -> DecimalValue -> DecimalValue # | |
| Read DecimalValue # | |
Defined in Network.AMQP.Types Methods readsPrec :: Int -> ReadS DecimalValue # readList :: ReadS [DecimalValue] # | |
| Show DecimalValue # | |
Defined in Network.AMQP.Types Methods showsPrec :: Int -> DecimalValue -> ShowS # show :: DecimalValue -> String # showList :: [DecimalValue] -> ShowS # | |
| Binary DecimalValue # | |
Defined in Network.AMQP.Types | |
data ConfirmationResult #
Instances
| Show ConfirmationResult # | |
Defined in Network.AMQP.Types Methods showsPrec :: Int -> ConfirmationResult -> ShowS # show :: ConfirmationResult -> String # showList :: [ConfirmationResult] -> ShowS # | |
describes whether a channel was closed by user-request (Normal) or by an AMQP exception (Abnormal)
Instances
| Eq CloseType # | |
| Ord CloseType # | |
| Show CloseType # | |