mirror of https://github.com/vacp2p/research.git
Add CASResponse type
This commit is contained in:
parent
66c3cab672
commit
f9745505f0
|
@ -15,27 +15,6 @@ message ExampleMessage {
|
||||||
|
|
||||||
// Note that some of these are for mocking and might not be part of the spec.
|
// 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
|
// TODO: This needs more fleshing out, what data is
|
||||||
message NSPostRequest {
|
message NSPostRequest {
|
||||||
string data = 1;
|
string data = 1;
|
||||||
|
@ -75,6 +54,13 @@ message CASRequest {
|
||||||
string id = 2;
|
string id = 2;
|
||||||
string data = 3;
|
string data = 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// XXX: Differentiate between post and get reply?
|
||||||
|
message CASResponse {
|
||||||
|
string id = 1;
|
||||||
|
string data = 2;
|
||||||
|
}
|
||||||
|
|
||||||
"""
|
"""
|
||||||
parseProto(protoSpec)
|
parseProto(protoSpec)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue