44 lines
1.0 KiB
Protocol Buffer
44 lines
1.0 KiB
Protocol Buffer
syntax = "proto3";
|
|
|
|
package data_service;
|
|
|
|
option go_package = "gitlab.michelsen.id/phillmichelsen/tessera/pkg/pb/data_service;data_service";
|
|
|
|
service DataServiceControl {
|
|
rpc StartStream(StartStreamRequest) returns (StartStreamResponse);
|
|
rpc StopStream(StopStreamRequest) returns (StopStreamResponse);
|
|
rpc ConfigureStream(ConfigureStreamRequest) returns (ConfigureStreamResponse);
|
|
}
|
|
|
|
service DataServiceStreaming {
|
|
rpc ConnectStream(ConnectStreamRequest) returns (stream Message);
|
|
}
|
|
|
|
message Identifier {
|
|
string key = 1;
|
|
}
|
|
|
|
message Pattern {
|
|
string key = 2;
|
|
}
|
|
|
|
message Message {
|
|
Identifier identifier = 1;
|
|
bytes payload = 2;
|
|
string encoding = 3;
|
|
}
|
|
|
|
message StartStreamRequest {}
|
|
message StartStreamResponse { string stream_uuid = 1; }
|
|
|
|
message ConfigureStreamRequest {
|
|
string stream_uuid = 1;
|
|
repeated Pattern patterns = 2;
|
|
}
|
|
message ConfigureStreamResponse {}
|
|
|
|
message StopStreamRequest { string stream_uuid = 1; }
|
|
message StopStreamResponse {}
|
|
|
|
message ConnectStreamRequest { string stream_uuid = 1; }
|