62 lines
1.2 KiB
Protocol Buffer
62 lines
1.2 KiB
Protocol Buffer
|
//COOPGO Diags gRPC service definition
|
||
|
|
||
|
syntax = "proto3";
|
||
|
|
||
|
option go_package = "git.coopgo.io/coopgo-platform/diags/grpcapi";
|
||
|
|
||
|
import "google/protobuf/timestamp.proto";
|
||
|
import "google/protobuf/struct.proto";
|
||
|
import "diag.proto";
|
||
|
|
||
|
service Diags {
|
||
|
rpc CreateDiag(CreateDiagRequest) returns (CreateDiagResponse) {}
|
||
|
rpc GetDiag(GetDiagRequest) returns (GetDiagResponse) {}
|
||
|
rpc GetDiags(GetDiagsRequest) returns (GetDiagsResponse) {}
|
||
|
rpc DeleteDiag(DeleteDiagRequest) returns (DeleteDiagResponse) {}
|
||
|
rpc UpdateDiag(UpdateDiagRequest) returns (UpdateDiagResponse) {}
|
||
|
}
|
||
|
|
||
|
message CreateDiagRequest {
|
||
|
Diag diag = 1;
|
||
|
}
|
||
|
|
||
|
message CreateDiagResponse {
|
||
|
Diag diag = 2;
|
||
|
}
|
||
|
|
||
|
message GetDiagRequest {
|
||
|
string id = 3;
|
||
|
}
|
||
|
|
||
|
message GetDiagResponse {
|
||
|
Diag diag = 4;
|
||
|
}
|
||
|
|
||
|
message DeleteDiagRequest {
|
||
|
string id = 5;
|
||
|
}
|
||
|
|
||
|
message DeleteDiagResponse {
|
||
|
bool ok = 6;
|
||
|
}
|
||
|
|
||
|
message GetDiagsRequest {
|
||
|
repeated string namespaces = 7;
|
||
|
google.protobuf.Timestamp mindate = 8;
|
||
|
google.protobuf.Timestamp maxdate = 9;
|
||
|
|
||
|
}
|
||
|
|
||
|
message GetDiagsResponse {
|
||
|
repeated Diag diags = 10;
|
||
|
}
|
||
|
|
||
|
|
||
|
message UpdateDiagRequest {
|
||
|
Diag diag = 11;
|
||
|
}
|
||
|
|
||
|
message UpdateDiagResponse {
|
||
|
Diag diag = 12;
|
||
|
}
|