1
0
silverbullet/webapp/syscalls/indexer.ts
2022-03-27 11:31:12 +02:00

18 lines
452 B
TypeScript

import { Space } from "../space";
import { SysCallMapping } from "../../plugos/system";
import { transportSyscalls } from "../../plugos/syscall/transport";
export default function indexerSyscalls(space: Space): SysCallMapping {
return transportSyscalls(
[
"scanPrefixForPage",
"scanPrefixGlobal",
"get",
"set",
"batchSet",
"delete",
],
(name, ...args) => space.wsCall(`index.${name}`, ...args)
);
}