Files
Superalgos/Network/NetwokNode.js
T
2021-08-26 16:54:05 +02:00

24 lines
1.3 KiB
JavaScript

global.NT = {
memory: {
USER_PROFILES_BY_ID: new Map(), // Here we will store the user profiles by User Profile Id.
USER_PROFILES_BY_HANDLE: new Map(), // Here we will store the user profiles by User Profile Handle.
POSTS: new Map(), // This are all the posts we are keeping track of.
EVENTS: new Map(), // This is the registry of all events received that prevents processing them more than once.
TIMELINE: [], // A time ordered list of Posts and Trades.
NETWORK_CLIENTS: [], // These are the Network Clients connected to this Network Node.
NETWORK_PEERS: [], // These are the Network Peers connected to this Network Node.
},
modules: {
USER_PROFILE: require('./UserProfile.js'),
EVENT: require('./Event.js'),
POST: require('./Post.js'),
BOT: require('./Bot.js'),
QUERY: require('./Query.js'),
PROFILE_STATS_QUERY: require('./ProfileStatsQuery.js'),
PROFILE_POSTS_QUERY: require('./ProfilePostsQuery.js'),
POST_REPLIES_QUERY: require('./ProfileRepliesQuery.js'),
TIMELINE_CHUNK_QUERY: require('./TimelineChunkQuery.js')
}
}