Documentation ¶
Overview ¶
Package rpc implements the RPC protocol for the seltabl language server.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeMessage ¶
DecodeMessage decodes a rpc message
func EncodeMessage ¶
EncodeMessage encodes a message into a string
It uses the json library to encode the message and returns a string representation of the encoded message with a Content-Length header.
It also returns an error if there is an error while encoding the message.
Types ¶
type BaseMessage ¶
BaseMessage is the base message for a rpc message
Click to show internal directories.
Click to hide internal directories.