| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
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 Source #
Constructors
| ChannelClosedException CloseType String | the |
| ConnectionClosedException CloseType String | String may contain a reason |
| AllChannelsAllocatedException Int | the |
Instances
| Eq AMQPException Source # | |
Defined in Network.AMQP.Types Methods (==) :: AMQPException -> AMQPException -> Bool # (/=) :: AMQPException -> AMQPException -> Bool # | |
| Ord AMQPException Source # | |
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 Source # | |
Defined in Network.AMQP.Types Methods showsPrec :: Int -> AMQPException -> ShowS # show :: AMQPException -> String # showList :: [AMQPException] -> ShowS # | |
| Exception AMQPException Source # | |
Defined in Network.AMQP.Types Methods toException :: AMQPException -> SomeException # fromException :: SomeException -> Maybe AMQPException # displayException :: AMQPException -> String # | |
type PayloadSize = LongInt Source #
type LongLongInt = Word64 Source #
newtype ShortString Source #
Constructors
| ShortString Text |
Instances
| Eq ShortString Source # | |
Defined in Network.AMQP.Types | |
| Ord ShortString Source # | |
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 Source # | |
Defined in Network.AMQP.Types Methods readsPrec :: Int -> ReadS ShortString # readList :: ReadS [ShortString] # readPrec :: ReadPrec ShortString # readListPrec :: ReadPrec [ShortString] # | |
| Show ShortString Source # | |
Defined in Network.AMQP.Types Methods showsPrec :: Int -> ShortString -> ShowS # show :: ShortString -> String # showList :: [ShortString] -> ShowS # | |
| Binary ShortString Source # | |
Defined in Network.AMQP.Types | |
newtype LongString Source #
Constructors
| LongString ByteString |
Instances
| Eq LongString Source # | |
Defined in Network.AMQP.Types | |
| Ord LongString Source # | |
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 Source # | |
Defined in Network.AMQP.Types Methods readsPrec :: Int -> ReadS LongString # readList :: ReadS [LongString] # readPrec :: ReadPrec LongString # readListPrec :: ReadPrec [LongString] # | |
| Show LongString Source # | |
Defined in Network.AMQP.Types Methods showsPrec :: Int -> LongString -> ShowS # show :: LongString -> String # showList :: [LongString] -> ShowS # | |
| Binary LongString Source # | |
Defined in Network.AMQP.Types | |
type ConsumerTag = Text Source #
data FieldTable Source #
Keys must be shorter than 256 bytes when encoded as UTF-8
Constructors
| FieldTable (Map Text FieldValue) |
Instances
| Eq FieldTable Source # | |
Defined in Network.AMQP.Types | |
| Ord FieldTable Source # | |
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 Source # | |
Defined in Network.AMQP.Types Methods readsPrec :: Int -> ReadS FieldTable # readList :: ReadS [FieldTable] # readPrec :: ReadPrec FieldTable # readListPrec :: ReadPrec [FieldTable] # | |
| Show FieldTable Source # | |
Defined in Network.AMQP.Types Methods showsPrec :: Int -> FieldTable -> ShowS # show :: FieldTable -> String # showList :: [FieldTable] -> ShowS # | |
| Binary FieldTable Source # | |
Defined in Network.AMQP.Types | |
data FieldValue Source #
Constructors
Instances
| Eq FieldValue Source # | |
Defined in Network.AMQP.Types | |
| Ord FieldValue Source # | |
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 Source # | |
Defined in Network.AMQP.Types Methods readsPrec :: Int -> ReadS FieldValue # readList :: ReadS [FieldValue] # readPrec :: ReadPrec FieldValue # readListPrec :: ReadPrec [FieldValue] # | |
| Show FieldValue Source # | |
Defined in Network.AMQP.Types Methods showsPrec :: Int -> FieldValue -> ShowS # show :: FieldValue -> String # showList :: [FieldValue] -> ShowS # | |
| Binary FieldValue Source # | |
Defined in Network.AMQP.Types | |
data DecimalValue Source #
Constructors
| DecimalValue Decimals LongInt |
Instances
| Eq DecimalValue Source # | |
Defined in Network.AMQP.Types | |
| Ord DecimalValue Source # | |
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 Source # | |
Defined in Network.AMQP.Types Methods readsPrec :: Int -> ReadS DecimalValue # readList :: ReadS [DecimalValue] # | |
| Show DecimalValue Source # | |
Defined in Network.AMQP.Types Methods showsPrec :: Int -> DecimalValue -> ShowS # show :: DecimalValue -> String # showList :: [DecimalValue] -> ShowS # | |
| Binary DecimalValue Source # | |
Defined in Network.AMQP.Types | |
data ConfirmationResult Source #
Instances
| Show ConfirmationResult Source # | |
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 Source # | |
| Ord CloseType Source # | |
| Show CloseType Source # | |