UnaryHandler
type UnaryHandler = (params, ctx) => | Promise< | Record<string, any> | ExternalRef> | Record<string, any> | ExternalRef;Defined in: src/types.ts:222
Handler for unary (request-response) RPC methods.
Returns the result values ({ result: value }), or an ExternalRef
to a pre-published result: the dispatcher then writes that ref’s pointer
batch directly, with no result build, validation, serialization or upload
(see publishExternal).
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
params |
Record<string, any> |
ctx |
LogContext |
Returns
Section titled “Returns”| Promise<
| Record<string, any>
| ExternalRef>
| Record<string, any>
| ExternalRef
