messagepack-rpc-0.1.0.2: Message Pack RPC over TCP

Copyright(c) 2014, Rodrigo Setti
LicenseMIT
Maintainerrodrigosetti@gmail.com
Stabilityexperimental
PortabilityPOSIX
Safe HaskellNone
LanguageHaskell2010

Network.MessagePack

Description

 

Synopsis

Documentation

type Method = Object -> IO (Either String Object) Source

The type of a message pack RPC method. It gets an Object as a parameter, and returns either an error or the result as an Object.

runRPC :: Map Text Method -> HostPreference -> ServiceName -> IO () Source

Start the RPC server binding the socket using the given preferences, and using the RPC methods defined in the map of method name -> Method.