Add CASResponse type

This commit is contained in:
Oskar Thoren 2019-08-12 00:44:18 +08:00
parent 66c3cab672
commit f9745505f0
No known key found for this signature in database
GPG Key ID: B2ECCFD3BC2EF77E
1 changed files with 7 additions and 21 deletions

View File

@ -15,27 +15,6 @@ message ExampleMessage {
// Note that some of these are for mocking and might not be part of the spec.
// Assuming only one
message CASPostRequest {
string data = 1;
}
// Respond with hash for success or error
// TODO: Maybe respond with more
message CASPostResponse {
string id = 1;
string data = 2;
}
message CASGetRequest {
string id = 1;
}
message CASGetResponse {
string id = 1;
string data = 2;
}
// TODO: This needs more fleshing out, what data is
message NSPostRequest {
string data = 1;
@ -75,6 +54,13 @@ message CASRequest {
string id = 2;
string data = 3;
}
// XXX: Differentiate between post and get reply?
message CASResponse {
string id = 1;
string data = 2;
}
"""
parseProto(protoSpec)