Expand description
Local-mode gRPC services for heddle agent serve.
These services implement the gRPC contract over a single local
Repository. They are distinct from grpc_hosted_impl/ because they
- don’t require Postgres, Biscuit auth, or the multi-tenant registry,
- are reachable over a Unix-domain socket from the same user,
- share the dedup/idempotency middleware with the hosted variant via
repo::operation_dedup::OperationDedupStore.
Each service has its own file. The shared scaffolding (the
GrpcLocalService struct, idempotency helpers) lives here.
Structs§
- Emit
Waiter - Future returned by
HookEventBroadcaster::emit_and_wait. Holds the receiver plus a hook back to the broker so it can clean up the pending slot if the future is dropped before the reply lands. - Grpc
Local Service - Shared state for the local gRPC services. Handlers borrow the repository for the duration of a single RPC; the dedup store is consulted on every state-changing call.
- Hook
Event Broadcaster - In-process pub/sub broker for hook events. Lives on
GrpcLocalServiceso every handler shares the same broker and asubscribe_hook_eventsstream and arespond_to_hookreply meet on the same correlator. - Hook
Response - Typed hook response decoded from
RespondToHook. The universal veto channel isabort; per-event extension fields ride onextraso per-event handlers can pullextra_signals,veto, etc. without the universal type having to know every shape. - Local
Discussion Service - Local
Hook Service - Local
Operation LogQuery Service - Local
Signal Service - Local
State Review Service - Local-mode
StateReviewServiceimplementation. - Local
Transaction Service - Local-mode
TransactionServiceimpl.