A11 (C++ runtime)
Native C++ implementation of the A11 streaming action runtime
Loading...
Searching...
No Matches
stream_reference.cc File Reference
#include "a11/actions/stream_reference.h"
#include <string>
#include <utility>
#include <absl/status/status_macros.h>
#include <nlohmann/json.hpp>
#include "a11/data/json.h"
#include "a11/json_codec.h"

Namespaces

namespace  a11
 
namespace  a11::actions
 

Functions

absl::StatusOr< data::Chunk > a11::actions::StreamReferenceToChunk (const StreamReference &reference)
 Encode a reference and its source as a plain JSON object chunk.
 
absl::StatusOr< StreamReference > a11::actions::StreamReferenceFromChunk (data::Chunk chunk)
 Decode a reference, preserving source metadata as an opaque JSON chunk.