A11 (C++ runtime)
Native C++ implementation of the A11 action and streaming runtime
Loading...
Searching...
No Matches
msgpack.cc File Reference
#include "a11/data/msgpack.h"
#include <cstddef>
#include <cstdint>
#include <exception>
#include <limits>
#include <string>
#include <string_view>
#include <utility>
#include <vector>
#include <absl/status/status.h>
#include <absl/status/statusor.h>
#include <absl/strings/str_cat.h>
#include <nlohmann/json.hpp>
#include "a11/status.h"

Namespaces

namespace  a11
 
namespace  a11::data
 

Functions

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.
 
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.