p

jsonrpc4s

package jsonrpc4s

Ordering
  1. Alphabetic
Visibility
  1. Public
  2. All

Type Members

  1. case class CancelParams(id: RequestId) extends Product with Serializable
  2. 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.

  3. class Endpoint[A, B] extends AnyRef
  4. sealed abstract class ErrorCode extends AnyRef
  5. case class ErrorObject(code: ErrorCode, message: String, data: Option[RawJson]) extends Product with Serializable
  6. final class InputOutput extends Cancelable

    Wrapper around a pair of input/output streams.

  7. trait JsonRpcService extends Service[Message, Response]
  8. final class LowLevelByteBufferMessageWriter extends LowLevelMessageWriter

    <invalid inheritdoc annotation>

  9. final class LowLevelChannelMessageWriter extends LowLevelMessageWriter

    <invalid inheritdoc annotation>

  10. final class LowLevelMessage extends AnyRef
  11. final class LowLevelMessageReader extends AnyRef
  12. 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.

  13. sealed trait Message extends AnyRef
  14. trait MethodName extends AnyRef
  15. trait NamedJsonRpcService extends JsonRpcService with MethodName
  16. final case class Notification(method: String, params: Option[RawJson], headers: Map[String, String], jsonrpc: String = "2.0") extends Message with Product with Serializable
  17. final case class RawJson(value: Array[Byte]) extends Product with Serializable
  18. 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
  19. sealed trait RequestId extends AnyRef
  20. sealed trait Response extends Message
  21. trait RpcActions extends AnyRef
  22. class RpcClient extends RpcActions
  23. 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.

  24. sealed trait RpcResponse[T] extends AnyRef

    Represents a response for a client RPC request.

  25. class RpcServer extends AnyRef
  26. 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.

  27. trait Service[A, B] extends AnyRef
  28. class Services extends AnyRef

Value Members

  1. object CancelParams extends Serializable
  2. object Connection extends Serializable
  3. object Endpoint
  4. object ErrorCode extends Product with Serializable
  5. object ErrorObject extends Serializable
  6. object LowLevelMessage
  7. object LowLevelMessageReader
  8. object LowLevelMessageWriter
  9. object Message
  10. object Notification extends Serializable
  11. object RawJson extends Serializable
  12. object Request extends Serializable
  13. object RequestId
  14. object Response
  15. object RpcActions
  16. object RpcClient
  17. object RpcFailure extends Serializable
  18. object RpcServer
  19. object Service
  20. object Services

Ungrouped