librats
Features
Quick Start
API Reference
GitHub
Back to Site
Loading...
Searching...
No Matches
node_context.h
Go to the documentation of this file.
1
#pragma once
2
21
#include "
node/peer_network.h
"
22
#include "
core/event_bus.h
"
23
#include "
core/service_registry.h
"
24
25
namespace
librats
{
26
27
struct
NodeContext
{
28
PeerNetwork
&
network
;
29
EventBus
&
events
;
30
ServiceRegistry
&
services
;
31
};
32
33
}
// namespace librats
librats::EventBus
Definition
event_bus.h:40
librats::PeerNetwork
Definition
peer_network.h:28
librats::ServiceRegistry
Definition
service_registry.h:39
event_bus.h
A tiny typed publish/subscribe hub for decoupled module notifications.
librats
Definition
node.h:65
peer_network.h
The narrow contract a subsystem needs from the node — and nothing more.
service_registry.h
Interface-keyed service lookup for targeted, synchronous module calls.
librats::NodeContext
Definition
node_context.h:27
librats::NodeContext::events
EventBus & events
Definition
node_context.h:29
librats::NodeContext::network
PeerNetwork & network
Definition
node_context.h:28
librats::NodeContext::services
ServiceRegistry & services
Definition
node_context.h:30