|
A11 (C++ runtime)
Native C++ implementation of the A11 streaming action runtime
|
How a service treats the connections it accepts. More...
#include <cpp/a11/service/service.h>
Public Member Functions | |
| absl::Status | Validate () const |
Public Attributes | |
| SessionOptions | session_options |
| Limits and timeouts for every session the service creates. | |
| bool | copy_registry_per_connection = false |
| Give each connection its own copy of the registry. | |
| data::ByteMap | session_headers |
| Headers stamped on every session the service creates. | |
| absl::Duration | drain_timeout = absl::Seconds(30) |
| How long ~Service and Drain() wait for live sessions before abandoning them. | |
| OnSessionStreamMessage | on_stream_message |
| Forwarded to each Session; for a service that wants raw message access. | |
| OnSessionStreamDone | on_stream_done |
| Forwarded to each Session. | |
How a service treats the connections it accepts.
| absl::Status a11::service::ServiceOptions::Validate | ( | ) | const |
| bool a11::service::ServiceOptions::copy_registry_per_connection = false |
Give each connection its own copy of the registry.
A service whose connections specialise their registry – registering a peer's announced tools, say – needs this, or one peer's actions become callable on another's session. Leave it false when the connection hook makes the copy itself, so there is exactly one copy and the hook owns it.
| absl::Duration a11::service::ServiceOptions::drain_timeout = absl::Seconds(30) |
How long ~Service and Drain() wait for live sessions before abandoning them.
| OnSessionStreamDone a11::service::ServiceOptions::on_stream_done |
Forwarded to each Session.
| OnSessionStreamMessage a11::service::ServiceOptions::on_stream_message |
Forwarded to each Session; for a service that wants raw message access.
| data::ByteMap a11::service::ServiceOptions::session_headers |
Headers stamped on every session the service creates.
| SessionOptions a11::service::ServiceOptions::session_options |
Limits and timeouts for every session the service creates.