network-messagepack-rpc-0.1.2.0: MessagePack RPC

Safe HaskellSafe
LanguageHaskell2010

Data.MessagePack.RPC

Description

Synopsis

Documentation

type MessageId = Word64 Source #

Message ID.

type MethodName = Text Source #

Method name.

data Message Source #

Message type of MessagePack PRC. Use toObject and fromObject for conversion.

Constructors

RequestMessage MessageId MethodName [Object]

Request

ResponseMessage MessageId (Either Object Object)

Response. Left is an error. Right is a result.

NotificationMessage MethodName [Object]

Notification.

Instances
Eq Message Source # 
Instance details

Defined in Data.MessagePack.RPC

Methods

(==) :: Message -> Message -> Bool #

(/=) :: Message -> Message -> Bool #

Show Message Source # 
Instance details

Defined in Data.MessagePack.RPC

MessagePack Message Source # 
Instance details

Defined in Data.MessagePack.RPC