Initial version (#1)
Co-authored-by: Julien Valverdé <julien.valverde@mailo.com> Reviewed-on: #1
This commit was merged in pull request #1.
This commit is contained in:
9
packages/server/src/webrpc/WebRpcTestLive.ts
Normal file
9
packages/server/src/webrpc/WebRpcTestLive.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
import { WebRpcTest } from "@website/common/webrpc"
|
||||
import { Effect, Layer } from "effect"
|
||||
|
||||
|
||||
export const PingV1Live = WebRpcTest.WebRpcTest.toLayerHandler("Test.PingV1", Effect.succeed(() => Effect.succeed("pong" as const)))
|
||||
|
||||
export const WebRpcTestLive = Layer.mergeAll(
|
||||
PingV1Live,
|
||||
) satisfies ReturnType<typeof WebRpcTest.WebRpcTest.toLayer>
|
||||
10
packages/server/src/webrpc/index.ts
Normal file
10
packages/server/src/webrpc/index.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
import type { WebRpc } from "@website/common/webrpc"
|
||||
import { Layer } from "effect"
|
||||
import * as WebRpcTestLive from "./WebRpcTestLive"
|
||||
|
||||
|
||||
export const WebRpcLive = Layer.mergeAll(
|
||||
WebRpcTestLive.WebRpcTestLive,
|
||||
) satisfies ReturnType<typeof WebRpc.toLayer>
|
||||
|
||||
export * as WebRpcTestLive from "./WebRpcTestLive"
|
||||
Reference in New Issue
Block a user