jsonrpclib

package jsonrpclib

Members list

Type members

Classlikes

sealed trait CallId

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object NullId
class NumberId
class StringId
object CallId

Attributes

Companion
trait
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
CallId.type
trait Channel[F[_]]

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
object Channel

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type
Channel.type
final case class ConflictingMethodError(name: String) extends Exception

Attributes

Supertypes
trait Product
trait Equals
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any
Show all
sealed trait Endpoint[F[_]]

Represents a JSON-RPC method handler that can be invoked by the server.

Represents a JSON-RPC method handler that can be invoked by the server.

An Endpoint[F] defines how to decode input from a JSON-RPC message, execute some effectful logic, and optionally return a response.

The endpoint's method field is used to match incoming JSON-RPC requests.

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
object Endpoint

Attributes

Companion
trait
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
Endpoint.type
trait ErrorCodec[E] extends ErrorDecoder[E], ErrorEncoder[E]

Attributes

Companion
object
Supertypes
trait ErrorEncoder[E]
trait ErrorDecoder[E]
class Object
trait Matchable
class Any
object ErrorCodec

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type
ErrorCodec.type
trait ErrorDecoder[E]

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
trait ErrorCodec[E]
trait ErrorEncoder[E]

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
trait ErrorCodec[E]
case class ErrorPayload(code: Int, message: String, data: Option[Payload]) extends Throwable

Attributes

Companion
object
Supertypes
trait Product
trait Equals
class Throwable
trait Serializable
class Object
trait Matchable
class Any
Show all
object ErrorPayload

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
case class ErrorReport(method: String, payload: Payload, error: ProtocolError)

Errors that should not be sent back through the json rpc channel (such as invalid notifications)

Errors that should not be sent back through the json rpc channel (such as invalid notifications)

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
abstract class FutureBasedChannel(endpoints: List[Endpoint[Future]])(implicit ec: ExecutionContext)

Attributes

Supertypes
trait Channel[Future]
class Object
trait Matchable
class Any
sealed trait InputMessage extends Message

Attributes

Companion
object
Supertypes
trait Message
class Object
trait Matchable
class Any
Known subtypes
object InputMessage

Attributes

Companion
trait
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
sealed trait Message

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object Message

Attributes

Companion
trait
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
Message.type
trait Monadic[F[_]]

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
object Monadic

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type
Monadic.type
sealed trait OutputMessage extends Message

Attributes

Companion
object
Supertypes
trait Message
class Object
trait Matchable
class Any
Known subtypes
object OutputMessage

Attributes

Companion
trait
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
case class Payload(data: Json)

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object Payload

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Payload.type
trait PolyFunction[F[_], G[_]]

A polymorphic natural transformation from F[_] to G[_].

A polymorphic natural transformation from F[_] to G[_].

Type parameters

F

Source effect type

G

Target effect type

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
PolyFunction[F, G]
sealed abstract class ProtocolError(val code: Int, message: String) extends Throwable

Attributes

Companion
object
Supertypes
class Throwable
trait Serializable
class Object
trait Matchable
class Any
Known subtypes
class ParseError
class ServerError
Show all
object ProtocolError

Attributes

Companion
class
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
sealed trait StubTemplate[In, Err, Out]

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class RequestResponseTemplate[In, Err, Out]
object StubTemplate

Attributes

Companion
trait
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type

Types

type ErrorCode = Int
type ErrorMessage = String