fixed review comments

This commit is contained in:
Oskar Thoren 2019-10-01 11:34:24 +08:00
parent ccb9ae7f44
commit c4183b25dc
No known key found for this signature in database
GPG Key ID: B2ECCFD3BC2EF77E

View File

@ -52,6 +52,8 @@ Payloads are implemented using [protocol buffers v3](https://developers.google.c
**CAS service**: **CAS service**:
```protobuf ```protobuf
syntax = "proto3";
package vac.cas; package vac.cas;
service CAS { service CAS {
@ -73,6 +75,10 @@ message Content {
**NS service**: **NS service**:
```protobuf ```protobuf
syntax = "proto3";
package vac.cas;
service NS { service NS {
rpc Update(NameUpdate) returns (Response) {} rpc Update(NameUpdate) returns (Response) {}
rpc Fetch(Query) returns (Content) {} rpc Fetch(Query) returns (Content) {}
@ -102,6 +108,10 @@ message Response {
**Remote log:** **Remote log:**
```protobuf ```protobuf
syntax = "proto3";
package vac.cas;
message RemoteLog { message RemoteLog {
repeated Pair pair = 1; repeated Pair pair = 1;
bytes tail = 2; bytes tail = 2;
@ -133,7 +143,7 @@ There are four fundamental roles:
The *remote log* protobuf is what is stored at the Name system. The *remote log* protobuf is what is stored at the Name system.
"Bob" can represents anything from 0 to N participants. Unlike Alice, Bob only needs read-only access to NS and CAS. "Bob" can represent anything from 0 to N participants. Unlike Alice, Bob only needs read-only access to NS and CAS.
### Flow ### Flow