network-messagepack-rpc-0.1.2.0: MessagePack RPC

Safe HaskellSafe
LanguageHaskell2010

Network.MessagePack.RPC.Client.Internal

Synopsis

Documentation

data Client Source #

A client data type for MessagePack RPC.

data Backend Source #

Backend IO functions. Any receiving / sending actions are performed by calling these functions.

Constructors

Backend 

Fields

type Logger = String -> IO () Source #

Logger type. Should print out the message passed as a first argument somewhere.

type Formatter = Message -> String Source #

Convert Message into a String to print out by Logger

type Result = Either Object Object Source #

Result type of a RPC call. Described as "error" and "result" of "Response Message" in the spec of MessagePack RPC.