Initial Commit
This commit is contained in:
95
packages/api-stack/api/api-worker-rpc/src/index.ts
Normal file
95
packages/api-stack/api/api-worker-rpc/src/index.ts
Normal file
@@ -0,0 +1,95 @@
|
||||
// Error codes
|
||||
|
||||
// Abort forwarding
|
||||
export {
|
||||
AbortError,
|
||||
type AbortLink,
|
||||
attachAbortSignal,
|
||||
createRemoteAbort,
|
||||
type RemoteAbort,
|
||||
} from "./abort-forwarding/index.js";
|
||||
// Backpressure
|
||||
export {
|
||||
type BackpressureMode,
|
||||
type BackpressurePolicy,
|
||||
BoundedQueue,
|
||||
CallBudget,
|
||||
DEFAULT_BACKPRESSURE,
|
||||
} from "./backpressure/index.js";
|
||||
// Client
|
||||
export {
|
||||
assertCloneable,
|
||||
createRawWorkerRpcClient,
|
||||
createWorkerRpcClient,
|
||||
type WorkerProxyClient,
|
||||
type WorkerRpcClient,
|
||||
type WorkerRpcClientOptions,
|
||||
} from "./client/index.js";
|
||||
// Correlation
|
||||
export {
|
||||
type CorrelationIdGenerator,
|
||||
createCorrelationIdGenerator,
|
||||
type PendingCall,
|
||||
PendingRegistry,
|
||||
} from "./correlation/index.js";
|
||||
export {
|
||||
WORKER_RPC_CODES,
|
||||
type WorkerRpcCode,
|
||||
WorkerRpcError,
|
||||
} from "./error-codes/index.js";
|
||||
// Error reconstruction
|
||||
export {
|
||||
envelopeToError,
|
||||
errorToEnvelope,
|
||||
} from "./error-reconstruction/index.js";
|
||||
// Protocol
|
||||
export {
|
||||
type CancelFrame,
|
||||
cancelFrameSchema,
|
||||
type ErrorEnvelope,
|
||||
errorEnvelopeSchema,
|
||||
type GoodbyeFrame,
|
||||
goodbyeFrameSchema,
|
||||
type HelloFrame,
|
||||
helloFrameSchema,
|
||||
PROTOCOL_VERSION,
|
||||
type ProgressFrame,
|
||||
parseFrame,
|
||||
progressFrameSchema,
|
||||
type RequestFrame,
|
||||
type ResponseFrame,
|
||||
requestFrameSchema,
|
||||
responseFrameSchema,
|
||||
type StreamAckFrame,
|
||||
type StreamChunkFrame,
|
||||
type StreamEndFrame,
|
||||
type StreamOpenFrame,
|
||||
streamAckFrameSchema,
|
||||
streamChunkFrameSchema,
|
||||
streamEndFrameSchema,
|
||||
streamOpenFrameSchema,
|
||||
type WorkerRpcFrame,
|
||||
workerRpcFrameSchema,
|
||||
} from "./protocol/index.js";
|
||||
// Server
|
||||
export {
|
||||
type ServeWorkerRpcOptions,
|
||||
serveWorkerRpc,
|
||||
type WorkerRpcHandler,
|
||||
type WorkerRpcHandlers,
|
||||
type WorkerRpcServer,
|
||||
} from "./server/index.js";
|
||||
// Streaming
|
||||
export {
|
||||
StreamDispatcher,
|
||||
type StreamRequestOptions,
|
||||
streamRequest,
|
||||
} from "./streaming/index.js";
|
||||
// Testing
|
||||
export {
|
||||
type ConformanceHarness,
|
||||
createInProcessPortPair,
|
||||
type InProcessPortPair,
|
||||
type PortLike,
|
||||
runWorkerRpcConformance,
|
||||
} from "./testing/index.js";
|
||||
Reference in New Issue
Block a user