15#ifndef A11_WASM_NATIVE_OBJECTS_H_
16#define A11_WASM_NATIVE_OBJECTS_H_
22#include <absl/container/flat_hash_map.h>
23#include <absl/container/flat_hash_set.h>
24#include <absl/status/status.h>
40 std::shared_ptr<nodes::NodeMap>
nodes;
41 std::shared_ptr<StoreRegistry>
stores;
42 std::shared_ptr<actions::ActionRegistry>
registry;
49 absl::flat_hash_map<std::string, std::shared_ptr<actions::Action>>
51 absl::flat_hash_map<std::string, std::shared_ptr<service::Session>>
54 absl::flat_hash_map<std::string, std::shared_ptr<nodes::NodeMap>>
56 absl::flat_hash_map<std::string, std::shared_ptr<HostStreamPair>>
59 absl::flat_hash_map<std::string, std::shared_ptr<HostBinaryChannel>>
61 absl::flat_hash_map<std::string, std::shared_ptr<HostChannelWireStream>>
63 absl::flat_hash_map<std::string,
64 std::shared_ptr<net::WireStreamWithRecv>>
69 std::shared_ptr<NativeGraph>
graph;
74 const std::shared_ptr<NativeGraph>& graph);
77 const std::string& payload);
A11's unit of work: the Action and its supporting types.
std::string session_id
Definition authorization.cc:217
A thread-safe catalogue mapping action names to schema and handler.
Definition registry.h:59
Definition boost_primitives.h:21
Definition async_task.cc:27
absl::Status HostInvokeSessionCallback(const std::string &session_id, const std::string &payload)
Definition bridge_native.cc:436
absl::Status RegisterHostAction(actions::ActionRegistry ®istry, actions::ActionSchema schema, const std::shared_ptr< NativeGraph > &graph)
Definition bridge_native.cc:430
A registry of AsyncNodes keyed by node id.
The action registry: a catalogue of named schema/handler pairs.
A11's connection-scoped runtime: the Session.
The full typed interface of an action.
Definition schema.h:144
Definition host_settings.h:27
Definition native_objects.h:39
bool initialized ABSL_GUARDED_BY(mu)
absl::flat_hash_set< std::string > pending_host_streams ABSL_GUARDED_BY(mu)
absl::flat_hash_map< std::string, std::shared_ptr< actions::Action > > actions ABSL_GUARDED_BY(mu)
HostSettings host_settings ABSL_GUARDED_BY(mu)
std::shared_ptr< actions::ActionRegistry > registry
Definition native_objects.h:42
std::shared_ptr< StoreRegistry > stores
Definition native_objects.h:41
absl::flat_hash_map< std::string, std::shared_ptr< net::WireStreamWithRecv > > channel_receivers ABSL_GUARDED_BY(mu)
absl::flat_hash_map< std::string, std::shared_ptr< nodes::NodeMap > > retained_flows ABSL_GUARDED_BY(mu)
absl::flat_hash_map< std::string, std::shared_ptr< service::Session > > sessions ABSL_GUARDED_BY(mu)
std::string storage_id ABSL_GUARDED_BY(mu)
absl::Status startup ABSL_GUARDED_BY(mu)
absl::flat_hash_map< std::string, std::shared_ptr< HostChannelWireStream > > channel_streams ABSL_GUARDED_BY(mu)
std::vector< std::shared_ptr< nodes::NodeMap > > flow_nodes ABSL_GUARDED_BY(mu)
absl::flat_hash_map< std::string, std::shared_ptr< HostStreamPair > > host_streams ABSL_GUARDED_BY(mu)
bool importing_snapshot ABSL_GUARDED_BY(mu)
absl::flat_hash_map< std::string, std::shared_ptr< HostBinaryChannel > > binary_channels ABSL_GUARDED_BY(mu)
thread::Mutex mu
Definition native_objects.h:43
std::shared_ptr< nodes::NodeMap > nodes
Definition native_objects.h:40
Definition native_objects.h:68
std::shared_ptr< NativeGraph > graph
Definition native_objects.h:69