Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
sagemathinc
GitHub Repository: sagemathinc/cocalc
Path: blob/master/src/packages/conat/service/syncfs-server.ts
1453 views
1
/*
2
This is a service that runs in the home base (or file server) to provide the home directory filesystem.
3
*/
4
5
import { createServiceClient, createServiceHandler } from "./typed";
6
7
interface SyncFsServerApi {
8
// nothing yet!
9
}
10
11
export function syncFsServerClient({
12
project_id,
13
timeout,
14
}: {
15
project_id: string;
16
timeout?: number;
17
}) {
18
return createServiceClient<SyncFsServerApi>({
19
project_id,
20
service: "syncfs-server",
21
timeout,
22
});
23
}
24
25
export async function createSyncFsServerService({
26
project_id,
27
impl,
28
}: {
29
project_id: string;
30
impl: SyncFsServerApi;
31
}) {
32
return await createServiceHandler<SyncFsServerApi>({
33
project_id,
34
service: "syncfs-server",
35
description:
36
"SyncFs server service that runs in the home base or file server",
37
impl,
38
});
39
}
40
41