User Profiles Module
This commit is contained in:
1 parent
3345eff347
commit
8716812610
4 files changed
+21
-25
No files matched your search
+6
-11
@@ -1,15 +1,10 @@
|
||||
exports.newBootstrap = function newBootstrap() {
|
||||
exports.newNetworkModulesUserProfiles = function newNetworkModulesUserProfiles() {
|
||||
/*
|
||||
This module helps the Network Node to bootstrap, by
|
||||
loading all the services and data that needs to start
|
||||
operating.
|
||||
|
||||
In particular, a network node operates with all User Profiles loaded in
|
||||
memory maps. These profiles become part of the system in the form of User Profiles
|
||||
Plugins at the Governance System, when user submit them. This means
|
||||
that all these profiles are already at the local disk of the Network Node.
|
||||
|
||||
From there they will be loaded into memory as part of this bootstrapping process.
|
||||
This module is usefull for all Apps that needs to operate with all User Profiles loaded in
|
||||
memory maps.
|
||||
|
||||
User Profiles are plugins of the Governance System. Besides the info they carry, we also
|
||||
need to read the blockchain for each one in order to calculate their ranking.
|
||||
*/
|
||||
let thisObject = {
|
||||
/* Framework Functions */
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
exports.newNetworkNetworkNodePicker = function newNetworkNetworkNodePicker () {
|
||||
exports.newAppClientNetworkNetworkNodePicker = function newAppClientNetworkNetworkNodePicker () {
|
||||
let thisObject = {
|
||||
pickOneNetworkNode: pickOneNetworkNode
|
||||
}
|
||||
@@ -1390,14 +1390,20 @@
|
||||
"propertyName": "webSocketsAppClient",
|
||||
"functionName": "newNetworkModulesWebSocketsAppClient",
|
||||
"fileName": "WebSocketsAppClient.js"
|
||||
},
|
||||
{
|
||||
"name": "User Profiles",
|
||||
"propertyName": "userProfiles",
|
||||
"functionName": "newNetworkModulesUserProfiles",
|
||||
"fileName": "UserProfiles.js"
|
||||
}
|
||||
],
|
||||
"utilities": [
|
||||
{
|
||||
"name": "Network Node Picker",
|
||||
"propertyName": "networkNodePicker",
|
||||
"functionName": "newNetworkNetworkNodePicker",
|
||||
"fileName": "NetworkNodePicker.js"
|
||||
"name": "App Client Network Node Picker",
|
||||
"propertyName": "appClientNetworkNodePicker",
|
||||
"functionName": "newAppClientNetworkNetworkNodePicker",
|
||||
"fileName": "AppClientNetworkNodePicker.js"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -1486,12 +1492,6 @@
|
||||
"functionName": "newSocialTradingModulesSocialGraph",
|
||||
"fileName": "SocialGraph.js"
|
||||
},
|
||||
{
|
||||
"name": "Bootstrap",
|
||||
"propertyName": "bootstrap",
|
||||
"functionName": "newSocialTradingModulesBootstrap",
|
||||
"fileName": "Bootstrap.js"
|
||||
},
|
||||
{
|
||||
"name": "Query",
|
||||
"propertyName": "query",
|
||||
|
||||
@@ -9,9 +9,10 @@ exports.newNetworkModulesSocialGraph = function newNetworkModulesSocialGraph() {
|
||||
their posts.
|
||||
*/
|
||||
let thisObject = {
|
||||
userProfiles: undefined,
|
||||
/* Framework Functions */
|
||||
initialize: initialize,
|
||||
finalize: finalize
|
||||
finalize: finalize
|
||||
}
|
||||
|
||||
return thisObject
|
||||
@@ -21,7 +22,7 @@ exports.newNetworkModulesSocialGraph = function newNetworkModulesSocialGraph() {
|
||||
}
|
||||
|
||||
async function initialize() {
|
||||
let bootstrapProcess = NT.projects.socialTrading.modules.bootstrap.newBootstrap()
|
||||
await bootstrapProcess.initialize()
|
||||
thisObject.userProfiles = SA.projects.network.modules.userProfiles.newNetworkModulesUserProfiles()
|
||||
await thisObject.userProfiles.initialize()
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user