automorph.protocol
Members list
Type members
Classlikes
JSON-RPC protocol plugin.
JSON-RPC protocol plugin.
Provides the following JSON-RPC methods for service discovery:
rpc.discover
- API schema in OpenRPC formatapi.discover
- API schema in OpenAPI format
Type parameters
- Codec
-
message codec plugin type
- Context
-
RPC message context type
- Node
-
message node type
Value parameters
- decodeMessage
-
converts a message format node to JSON-RPC message
- encodeMessage
-
converts a JSON-RPC message to message format node
- encodeOpenApi
-
converts an OpenAPI schema to message format node
- encodeOpenRpc
-
converts an OpenRPC description to message format node
- encodeStrings
-
converts a list of strings to message format node
- 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
Attributes
- Companion
- class
- Supertypes
- Self type
-
JsonRpcProtocol.type
Web-RPC protocol implementation.
Web-RPC protocol implementation.
Provides the following Web-RPC functions for service discovery:
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
- decodeRequest
-
converts a message format node to Web-RPC request
- decodeResponse
-
converts a message format node to Web-RPC response
- encodeOpenApi
-
converts an OpenAPI schema to message format node
- encodeRequest
-
converts a Web-RPC request to message format node
- encodeResponse
-
converts a Web-RPC response to message format node
- encodeString
-
converts a string to message format node
- mapError
-
maps a Web-RPC error to a corresponding exception
- mapException
-
maps an exception to a corresponding Web-RPC error
- mapOpenApi
-
transforms generated OpenAPI schema
- messageCodec
-
message codec plugin
- pathPrefix
-
API path prefix
Attributes
Attributes
- Companion
- class
- Supertypes
- Self type
-
WebRpcProtocol.type