MCPcopy
hub / github.com/CodeboxIDE/codebox / setup

Function setup

core/cb.rpc.search/main.js:5–18  ·  view source on GitHub ↗
(options, imports, register)

Source from the content-addressed store, hash-verified

3
4
5function setup(options, imports, register) {
6 // Import
7 var search = imports.search;
8 var rpc = imports.rpc;
9
10 // Service
11 var service = new SearchRPCService(search);
12
13 // Register RPC
14 rpc.register('search', service);
15
16 // Register
17 register(null, {});
18}
19
20// Exports
21module.exports = setup;

Callers

nothing calls this directly

Calls 1

registerFunction · 0.85

Tested by

no test coverage detected