jsonrpc4s
package jsonrpc4s
- Alphabetic
- Public
- All
Type Members
- case class CancelParams(id: RequestId) extends Product with Serializable
-
final
case class
Connection(client: RpcClient, server: CancelableFuture[Unit]) extends Cancelable with Product with Serializable
A connection with another JSON-RPC entity.
A connection with another JSON-RPC entity.
- client
used to send requests/notification to the other entity.
- server
server on this side listening to input streams from the other entity.
- class Endpoint[A, B] extends AnyRef
- sealed abstract class ErrorCode extends AnyRef
- case class ErrorObject(code: ErrorCode, message: String, data: Option[RawJson]) extends Product with Serializable
-
final
class
InputOutput extends Cancelable
Wrapper around a pair of input/output streams.
- trait JsonRpcService extends Service[Message, Response]
-
final
class
LowLevelByteBufferMessageWriter extends LowLevelMessageWriter
<invalid inheritdoc annotation>
-
final
class
LowLevelChannelMessageWriter extends LowLevelMessageWriter
<invalid inheritdoc annotation>
- final class LowLevelMessage extends AnyRef
- final class LowLevelMessageReader extends AnyRef
-
sealed
trait
LowLevelMessageWriter extends AnyRef
A trait that writes JSON-RPC messages to an output stream.
A trait that writes JSON-RPC messages to an output stream. It produces the following format:
<Header> '\r\n' <Content>
Header := FieldName ':' FieldValue '\r\n'
Currently there are two defined header fields: - 'Content-Length' in bytes (required) - 'Content-Type' (string), defaults to 'application/vscode-jsonrpc; charset=utf8'
- Note
The header part is defined to be ASCII encoded, while the content part is UTF8.
- sealed trait Message extends AnyRef
- trait MethodName extends AnyRef
- trait NamedJsonRpcService extends JsonRpcService with MethodName
- final case class Notification(method: String, params: Option[RawJson], headers: Map[String, String], jsonrpc: String = "2.0") extends Message with Product with Serializable
- final case class RawJson(value: Array[Byte]) extends Product with Serializable
- final case class Request(method: String, params: Option[RawJson], id: RequestId, headers: Map[String, String], jsonrpc: String = "2.0") extends Message with Product with Serializable
- sealed trait RequestId extends AnyRef
- sealed trait Response extends Message
- trait RpcActions extends AnyRef
- class RpcClient extends RpcActions
-
final
case class
RpcFailure[T](methodName: String, underlying: Error) extends RuntimeException with RpcResponse[T] with Product with Serializable
Represents a failed client RPC request.
Represents a failed client RPC request.
- methodName
is the name of the method that failed to complete.
- underlying
is the underlying JSON-RPC error message.
-
sealed
trait
RpcResponse[T] extends AnyRef
Represents a response for a client RPC request.
- class RpcServer extends AnyRef
-
final
case class
RpcSuccess[T](value: T, underlying: Success) extends RpcResponse[T] with Product with Serializable
Represents a successful client RPC request.
Represents a successful client RPC request.
- value
is the value that was successfully serialized from
underlying
.- underlying
is the underlying JSON-RPC message where the value comes from.
- trait Service[A, B] extends AnyRef
- class Services extends AnyRef
Value Members
- object CancelParams extends Serializable
- object Connection extends Serializable
- object Endpoint
- object ErrorCode extends Product with Serializable
- object ErrorObject extends Serializable
- object LowLevelMessage
- object LowLevelMessageReader
- object LowLevelMessageWriter
- object Message
- object Notification extends Serializable
- object RawJson extends Serializable
- object Request extends Serializable
- object RequestId
- object Response
- object RpcActions
- object RpcClient
- object RpcFailure extends Serializable
- object RpcServer
- object Service
- object Services