protoc-gen-go-micro/examples/go-kit/services/sprint/sprint.proto

38 lines
689 B
Protocol Buffer
Raw Normal View History

2016-12-13 12:36:55 +03:00
syntax = "proto3";
2016-12-13 12:27:52 +03:00
package sprint;
service SprintService {
2016-12-13 12:36:55 +03:00
rpc AddSprint(AddSprintRequest) returns (AddSprintResponse) {}
rpc CloseSprint(CloseSprintRequest) returns (CloseSprintResponse) {}
rpc GetSprint(GetSprintRequest) returns (GetSprintResponse) {}
2016-12-13 12:27:52 +03:00
}
message AddSprintRequest {
string name = 1;
}
message AddSprintResponse {
Sprint sprint = 1;
string err_msg = 2;
}
message CloseSprintRequest {
string id = 1;
}
message CloseSprintResponse {
string err_msg = 1;
}
message GetSprintRequest {
string id = 1;
}
message GetSprintResponse {
Sprint sprint = 1;
string err_msg = 2;
}
message Sprint {
string id = 1;
uint32 created_at = 2;
string name = 3;
}