automorph.RpcEndpoint
See theRpcEndpoint companion object
final case class RpcEndpoint[Node, Codec <: MessageCodec[Node], Effect[_], Context, Adapter](transport: EndpointTransport[Effect, Context, Adapter], rpcProtocol: RpcProtocol[Node, Codec, Context], handler: RequestHandler[Effect, Context], functions: Seq[RpcFunction])
RPC endpoint.
Used to handle remote API requests as part of an existing server and invoke bound API methods to process them.
Automatically derives remote API bindings for existing API instances.
Type parameters
- Adapter
-
transport layer adapter type
- Codec
-
message codec plugin type
- Context
-
RPC message context type
- Effect
-
effect type
- Node
-
message node type
Value parameters
- functions
-
bound RPC functions
- handler
-
RPC request handler
- rpcProtocol
-
RPC protocol plugin
- transport
-
transport layer transport plugin
Attributes
- Constructor
-
Creates a RPC endpoint with specified protocol and transport plugins supporting corresponding message context type.
- Companion
- object
- Graph
-
- Supertypes
Members list
In this article