2025-02-25 12:22:54 +01:00
|
|
|
syntax = "proto3";
|
|
|
|
|
|
|
|
option go_package = "/proto";
|
|
|
|
|
|
|
|
package management;
|
|
|
|
|
|
|
|
service FlowService {
|
|
|
|
// Client to receiver streams of events and acknowledgements
|
2025-02-25 17:29:54 +01:00
|
|
|
rpc Events(stream FlowEvent) returns (stream FlowEventAck) {}
|
2025-02-25 12:22:54 +01:00
|
|
|
}
|
|
|
|
|
2025-02-25 17:29:54 +01:00
|
|
|
message FlowEvent {
|
2025-02-25 12:22:54 +01:00
|
|
|
// Unique client event identifier
|
|
|
|
string event_id = 1;
|
|
|
|
|
|
|
|
// Unique client flow session identifier
|
|
|
|
string flow_id = 2;
|
|
|
|
|
|
|
|
// @todo define event props
|
|
|
|
}
|
|
|
|
|
2025-02-25 17:29:54 +01:00
|
|
|
message FlowEventAck {
|
2025-02-25 12:22:54 +01:00
|
|
|
// Unique client event identifier that has been ack'ed
|
|
|
|
string event_id = 1;
|
|
|
|
}
|
|
|
|
|