|
A11 (C++ runtime)
Native C++ implementation of the A11 streaming action runtime
|
#include <algorithm>#include <string>#include <string_view>#include <utility>#include <vector>#include <absl/container/flat_hash_map.h>#include <absl/status/status.h>#include <absl/status/status_macros.h>#include <absl/status/statusor.h>#include <absl/strings/str_cat.h>#include <nlohmann/json.hpp>#include "a11/actions/describe.h"#include "a11/actions/schema.h"#include "a11/json_codec.h"Namespaces | |
| namespace | a11 |
| namespace | a11::actions |
Functions | |
| nlohmann::json | a11::actions::SchemaToJson (const ActionSchema &schema, bool runnable, PortView ports=PortView::kCallable) |
One schema as an actions entry. | |
| absl::StatusOr< std::string > | a11::actions::SchemaToJsonText (const ActionSchema &schema, bool runnable, PortView ports=PortView::kCallable) |
| One schema as a whole document, for a route that answers with one. | |
| absl::StatusOr< ActionSchema > | a11::actions::SchemaFromJson (const nlohmann::json &entry) |
The schema an actions entry was written from. | |
| absl::StatusOr< ActionSchema > | a11::actions::SchemaFromJsonText (std::string_view encoded) |
SchemaFromJson, parsing encoded first. | |
| absl::StatusOr< std::vector< nlohmann::json > > | a11::actions::SchemasInDocument (const nlohmann::json &document) |
The actions entries of document, or why there are none to read. | |