Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- newtype RpcMethod = RpcMethod {
- unRpcMethod :: Text
- newtype RequestId = RequestId {
- unRequestId :: Int64
- data Request = Request {}
- data TrackedRequest = TrackedRequest {}
- formatReq :: Request -> Text
- formatTrackedReq :: TrackedRequest -> Text
Documentation
Instances
IsString RpcMethod Source # | |
Defined in Ribosome.Host.Data.Request fromString :: String -> RpcMethod # | |
Monoid RpcMethod Source # | |
Semigroup RpcMethod Source # | |
Generic RpcMethod Source # | |
Show RpcMethod Source # | |
Eq RpcMethod Source # | |
Ord RpcMethod Source # | |
Defined in Ribosome.Host.Data.Request | |
MsgpackDecode RpcMethod Source # | |
MsgpackEncode RpcMethod Source # | |
type Rep RpcMethod Source # | |
Defined in Ribosome.Host.Data.Request |
Instances
Enum RequestId Source # | |
Defined in Ribosome.Host.Data.Request succ :: RequestId -> RequestId # pred :: RequestId -> RequestId # fromEnum :: RequestId -> Int # enumFrom :: RequestId -> [RequestId] # enumFromThen :: RequestId -> RequestId -> [RequestId] # enumFromTo :: RequestId -> RequestId -> [RequestId] # enumFromThenTo :: RequestId -> RequestId -> RequestId -> [RequestId] # | |
Generic RequestId Source # | |
Num RequestId Source # | |
Defined in Ribosome.Host.Data.Request | |
Integral RequestId Source # | |
Defined in Ribosome.Host.Data.Request | |
Real RequestId Source # | |
Defined in Ribosome.Host.Data.Request toRational :: RequestId -> Rational # | |
Show RequestId Source # | |
Eq RequestId Source # | |
Ord RequestId Source # | |
Defined in Ribosome.Host.Data.Request | |
MsgpackDecode RequestId Source # | |
MsgpackEncode RequestId Source # | |
type Rep RequestId Source # | |
Defined in Ribosome.Host.Data.Request |
The payload of an RPC request.
Instances
Generic Request Source # | |
Show Request Source # | |
Eq Request Source # | |
MsgpackEncode Request Source # | |
type Rep Request Source # | |
Defined in Ribosome.Host.Data.Request type Rep Request = D1 ('MetaData "Request" "Ribosome.Host.Data.Request" "ribosome-host-0.9.9.9-5mVeOZw909e7nfaEBEbC5r" 'False) (C1 ('MetaCons "Request" 'PrefixI 'True) (S1 ('MetaSel ('Just "method") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 RpcMethod) :*: S1 ('MetaSel ('Just "arguments") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Object]))) |
data TrackedRequest Source #
An RPC request, which is a payload combined with a request ID.
Instances
Show TrackedRequest Source # | |
Defined in Ribosome.Host.Data.Request showsPrec :: Int -> TrackedRequest -> ShowS # show :: TrackedRequest -> String # showList :: [TrackedRequest] -> ShowS # | |
Eq TrackedRequest Source # | |
Defined in Ribosome.Host.Data.Request (==) :: TrackedRequest -> TrackedRequest -> Bool # (/=) :: TrackedRequest -> TrackedRequest -> Bool # |