MCPcopy Index your code
hub / github.com/mailvelope/mailvelope / createController

Function createController

src/controller/factory.js:63–67  ·  view source on GitHub ↗
(type, port)

Source from the content-addressed store, hash-verified

61const peerRepo = new Map();
62
63export function createController(type, port) {
64 verifyCreatePermission(type, port);
65 const {contrConstructor} = repo.get(type);
66 return new contrConstructor(port);
67}
68
69export function createPeerController(type) {
70 const contrConstructor = peerRepo.get(type);

Callers 15

unlockKeyMethod · 0.90
importKeyMethod · 0.90
lookupKeyFunction · 0.90
initDecryptMessageMethod · 0.90
unlockKeyMethod · 0.90
addPortMethod · 0.90
unlockKeyMethod · 0.90
importPubKeyMethod · 0.90
unlockKeyMethod · 0.90
downloadSyncMessageMethod · 0.90
uploadSyncMessageMethod · 0.90

Calls 2

verifyCreatePermissionFunction · 0.85
getMethod · 0.45

Tested by 2

setupDecryptControllerFunction · 0.40
setupEditorControllerFunction · 0.40