Thrift-0.6.0.1: Haskell bindings for the Apache Thrift RPC system

Safe HaskellSafe-Inferred

Thrift.Protocol

Documentation

class Protocol a whereSource

Methods

getTransport :: Transport t => a t -> tSource

writeMessageBegin :: Transport t => a t -> (String, MessageType, Int32) -> IO ()Source

writeMessageEnd :: Transport t => a t -> IO ()Source

writeStructBegin :: Transport t => a t -> String -> IO ()Source

writeStructEnd :: Transport t => a t -> IO ()Source

writeFieldBegin :: Transport t => a t -> (String, ThriftType, Int16) -> IO ()Source

writeFieldEnd :: Transport t => a t -> IO ()Source

writeFieldStop :: Transport t => a t -> IO ()Source

writeMapBegin :: Transport t => a t -> (ThriftType, ThriftType, Int32) -> IO ()Source

writeMapEnd :: Transport t => a t -> IO ()Source

writeListBegin :: Transport t => a t -> (ThriftType, Int32) -> IO ()Source

writeListEnd :: Transport t => a t -> IO ()Source

writeSetBegin :: Transport t => a t -> (ThriftType, Int32) -> IO ()Source

writeSetEnd :: Transport t => a t -> IO ()Source

writeBool :: Transport t => a t -> Bool -> IO ()Source

writeByte :: Transport t => a t -> Int8 -> IO ()Source

writeI16 :: Transport t => a t -> Int16 -> IO ()Source

writeI32 :: Transport t => a t -> Int32 -> IO ()Source

writeI64 :: Transport t => a t -> Int64 -> IO ()Source

writeDouble :: Transport t => a t -> Double -> IO ()Source

writeString :: Transport t => a t -> String -> IO ()Source

writeBinary :: Transport t => a t -> ByteString -> IO ()Source

readMessageBegin :: Transport t => a t -> IO (String, MessageType, Int32)Source

readMessageEnd :: Transport t => a t -> IO ()Source

readStructBegin :: Transport t => a t -> IO StringSource

readStructEnd :: Transport t => a t -> IO ()Source

readFieldBegin :: Transport t => a t -> IO (String, ThriftType, Int16)Source

readFieldEnd :: Transport t => a t -> IO ()Source

readMapBegin :: Transport t => a t -> IO (ThriftType, ThriftType, Int32)Source

readMapEnd :: Transport t => a t -> IO ()Source

readListBegin :: Transport t => a t -> IO (ThriftType, Int32)Source

readListEnd :: Transport t => a t -> IO ()Source

readSetBegin :: Transport t => a t -> IO (ThriftType, Int32)Source

readSetEnd :: Transport t => a t -> IO ()Source

readBool :: Transport t => a t -> IO BoolSource

readByte :: Transport t => a t -> IO Int8Source

readI16 :: Transport t => a t -> IO Int16Source

readI32 :: Transport t => a t -> IO Int32Source

readI64 :: Transport t => a t -> IO Int64Source

readDouble :: Transport t => a t -> IO DoubleSource

readString :: Transport t => a t -> IO StringSource

readBinary :: Transport t => a t -> IO ByteStringSource

skip :: (Protocol p, Transport t) => p t -> ThriftType -> IO ()Source