JsonRpcProtocol

automorph.protocol.JsonRpcProtocol$
See theJsonRpcProtocol companion class

Attributes

Companion
class
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type

Members list

Type members

Inherited types

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror

The name of the type

The name of the type

Attributes

Inherited from:
Mirror

Value members

Concrete methods

Creates a JSON-RPC protocol plugin.

Creates a JSON-RPC protocol plugin.

Provides the following JSON-RPC methods for service discovery:

  • rpc.discover - API schema in OpenRPC format
  • api.discover - API schema in OpenAPI format

Type parameters

Codec

message codec plugin type

Context

RPC message context type

Node

message node type

Value parameters

mapError

maps a JSON-RPC error to a corresponding exception

mapException

maps an exception to a corresponding JSON-RPC error

mapOpenApi

transforms generated OpenAPI schema

mapOpenRpc

transforms generated OpenRPC schema

messageCodec

message codec plugin

namedArguments

if true, pass arguments by name, if false pass arguments by position

Attributes

Returns

JSON-RPC protocol plugin

See also

Inherited methods

Maps a JSON-RPC error to a corresponding default exception.

Maps a JSON-RPC error to a corresponding default exception.

Value parameters

code

error code

message

error message

Attributes

Returns

exception

Inherited from:
ErrorMapping (hidden)

Maps an exception to a corresponding default JSON-RPC error type.

Maps an exception to a corresponding default JSON-RPC error type.

Value parameters

exception

exception

Attributes

Returns

JSON-RPC error type

Inherited from:
ErrorMapping (hidden)

Concrete fields

Service discovery method providing API schema in OpenAPI format.

Service discovery method providing API schema in OpenAPI format.

Attributes

Service discovery method providing API schema in OpenRPC format.

Service discovery method providing API schema in OpenRPC format.

Attributes