Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/mailvelope/mailvelope
/ createPeerController
Function
createPeerController
src/controller/factory.js:69–72 ·
view source on GitHub ↗
(type)
Source
from the content-addressed store, hash-verified
67
}
68
69
export
function
createPeerController(
type
) {
70
const
contrConstructor = peerRepo.get(
type
);
71
return
new
contrConstructor();
72
}
73
74
export
function
getControllerClass(
type
) {
75
return
repo.get(
type
).contrConstructor;
Callers
1
createPeer
Method · 0.90
Calls
1
get
Method · 0.45
Tested by
no test coverage detected