2022-04-03 16:12:16 +00:00
|
|
|
import {Space} from "../space";
|
|
|
|
import {SysCallMapping} from "../../plugos/system";
|
|
|
|
import {transportSyscalls} from "../../plugos/syscalls/transport";
|
2022-03-25 11:03:06 +00:00
|
|
|
|
2022-04-03 16:12:16 +00:00
|
|
|
export function indexerSyscalls(space: Space): SysCallMapping {
|
2022-03-25 11:03:06 +00:00
|
|
|
return transportSyscalls(
|
|
|
|
[
|
2022-04-03 16:42:12 +00:00
|
|
|
"index.scanPrefixForPage",
|
|
|
|
"index.scanPrefixGlobal",
|
|
|
|
"index.get",
|
|
|
|
"index.set",
|
|
|
|
"index.batchSet",
|
|
|
|
"index.delete",
|
2022-03-25 11:03:06 +00:00
|
|
|
],
|
2022-04-03 16:42:12 +00:00
|
|
|
(ctx, name, ...args) => space.remoteSyscall(ctx.plug, name, args)
|
2022-03-25 11:03:06 +00:00
|
|
|
);
|
|
|
|
}
|