|
A11 (C++ runtime)
Native C++ implementation of the A11 action and streaming runtime
|
MessagePack helpers behind A11's native wire value serializers. More...
#include <cstddef>#include <string>#include <string_view>#include <absl/status/status.h>#include <absl/status/statusor.h>#include <nlohmann/json.hpp>Go to the source code of this file.
Classes | |
| class | a11::data::MsgpackWriter |
| Incrementally encode the fields of one A11 wire record. More... | |
| class | a11::data::MsgpackReader |
| Sequentially decode the fields of one A11 MessagePack wire record. More... | |
Namespaces | |
| namespace | a11 |
| namespace | a11::data |
Functions | |
| absl::StatusOr< std::string > | a11::data::PackStatus (const absl::Status &status) |
| Encode a structured Abseil status for action and transport status fields. | |
| absl::StatusOr< absl::Status > | a11::data::UnpackStatus (std::string_view bytes) |
| Decode a structured status without losing A11 status details. | |
| nlohmann::json | a11::data::Binary (std::string_view bytes) |
| Wrap arbitrary bytes as a MessagePack binary JSON value. | |
| absl::StatusOr< std::string > | a11::data::GetBinary (const nlohmann::json &value, std::string_view field_name) |
Read a binary JSON value, naming field_name in any validation error. | |
MessagePack helpers behind A11's native wire value serializers.