Copyright | (c) Abhinav Gupta 2015 |
---|---|
License | BSD3 |
Maintainer | Abhinav Gupta <mail@abhinavg.net> |
Stability | experimental |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Message wrapper for Thrift payloads. Normal Thrift requests sent over the wire are wrapped inside a message envelope that contains information about the method being called, the type of message, etc. This information is essential for the RPC system to function.
Synopsis
- data Message = Message {
- messageName :: !Text
- messageType :: !MessageType
- messageId :: !Int32
- messagePayload :: !(Value TStruct)
- data MessageType
Documentation
Message envelope for Thrift payloads.
Message | |
|
Instances
Generic Message Source # | |
Show Message Source # | |
NFData Message Source # | |
Defined in Pinch.Internal.Message | |
Eq Message Source # | |
type Rep Message Source # | |
Defined in Pinch.Internal.Message type Rep Message = D1 ('MetaData "Message" "Pinch.Internal.Message" "pinch-0.4.3.0-IP3NIMX7ovVBCBsW5ZUwO6" 'False) (C1 ('MetaCons "Message" 'PrefixI 'True) ((S1 ('MetaSel ('Just "messageName") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "messageType") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 MessageType)) :*: (S1 ('MetaSel ('Just "messageId") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Int32) :*: S1 ('MetaSel ('Just "messagePayload") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Value TStruct))))) |
data MessageType Source #
Type of message being sent.
Call | A call to a specific method. The message body is the request arguments struct. |
Reply | Response to a call. The message body is the response union. |
Exception | Failure to make a call. Note: This message type is not used for exceptions that are defined
under the |
Oneway | One-way call that expects no response. |