Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data ClientRequest
- = DisplayRequest { }
- | StreamRequest
- data ClientMessage = ClientMessage {
- cRequestId :: Int
- cVerb :: Text
- cPath :: [Text]
- cAuthentication :: Authentication
- cPayload :: Object
- encodeRequest :: Int -> Authentication -> ClientRequest -> ClientMessage
- data ServerEvent
- = ServerErrorEvent { }
- | ServerInputEvent { }
- | ServerUnknownEvent {
- sePayload :: Object
- data InputEvent = InputEvent {}
- data Input
- data ServerMessage = ServerMessage {}
- decodeEvent :: ServerMessage -> Either Text ServerEvent
Client -> server messages
data ClientRequest Source #
High-level client -> server message structure.
Instances
Show ClientRequest Source # | |
Defined in Lighthouse.Protocol showsPrec :: Int -> ClientRequest -> ShowS # show :: ClientRequest -> String # showList :: [ClientRequest] -> ShowS # | |
Eq ClientRequest Source # | |
Defined in Lighthouse.Protocol (==) :: ClientRequest -> ClientRequest -> Bool # (/=) :: ClientRequest -> ClientRequest -> Bool # |
data ClientMessage Source #
Low-level client -> server message structure.
ClientMessage | |
|
Instances
Show ClientMessage Source # | |
Defined in Lighthouse.Protocol showsPrec :: Int -> ClientMessage -> ShowS # show :: ClientMessage -> String # showList :: [ClientMessage] -> ShowS # | |
Eq ClientMessage Source # | |
Defined in Lighthouse.Protocol (==) :: ClientMessage -> ClientMessage -> Bool # (/=) :: ClientMessage -> ClientMessage -> Bool # | |
MPSerializable ClientMessage Source # | |
Defined in Lighthouse.Protocol mpSerialize :: ClientMessage -> Object Source # | |
Serializable ClientMessage Source # | |
Defined in Lighthouse.Protocol serialize :: ClientMessage -> ByteString Source # |
encodeRequest :: Int -> Authentication -> ClientRequest -> ClientMessage Source #
Encodes a ClientRequest to a ClientMessage.
Server -> client messages
data ServerEvent Source #
High-level server -> client message structure.
Instances
Show ServerEvent Source # | |
Defined in Lighthouse.Protocol showsPrec :: Int -> ServerEvent -> ShowS # show :: ServerEvent -> String # showList :: [ServerEvent] -> ShowS # | |
Eq ServerEvent Source # | |
Defined in Lighthouse.Protocol (==) :: ServerEvent -> ServerEvent -> Bool # (/=) :: ServerEvent -> ServerEvent -> Bool # |
data InputEvent Source #
A key event emitted via the web interface.
Instances
Show InputEvent Source # | |
Defined in Lighthouse.Protocol showsPrec :: Int -> InputEvent -> ShowS # show :: InputEvent -> String # showList :: [InputEvent] -> ShowS # | |
Eq InputEvent Source # | |
Defined in Lighthouse.Protocol (==) :: InputEvent -> InputEvent -> Bool # (/=) :: InputEvent -> InputEvent -> Bool # | |
MPDeserializable InputEvent Source # | |
Defined in Lighthouse.Protocol mpDeserialize :: Object -> Either Text InputEvent Source # |
An input via the web interface.
data ServerMessage Source #
Low-level server -> client message structure.
Instances
Show ServerMessage Source # | |
Defined in Lighthouse.Protocol showsPrec :: Int -> ServerMessage -> ShowS # show :: ServerMessage -> String # showList :: [ServerMessage] -> ShowS # | |
Eq ServerMessage Source # | |
Defined in Lighthouse.Protocol (==) :: ServerMessage -> ServerMessage -> Bool # (/=) :: ServerMessage -> ServerMessage -> Bool # | |
MPDeserializable ServerMessage Source # | |
Defined in Lighthouse.Protocol mpDeserialize :: Object -> Either Text ServerMessage Source # | |
Deserializable ServerMessage Source # | |
Defined in Lighthouse.Protocol |
decodeEvent :: ServerMessage -> Either Text ServerEvent Source #
Decodes a ServerMessage to a ServerEvent.
Orphan instances
MPSerializable Display Source # | |
mpSerialize :: Display -> Object Source # |