Skip to content

Commit

Permalink
PATCH: patches/com_github_scionproto_scion/prefixes_etag.patch
Browse files Browse the repository at this point in the history
  • Loading branch information
oncilla authored Dec 27, 2023
1 parent cb459a5 commit 8a71cb5
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 22 deletions.
59 changes: 39 additions & 20 deletions pkg/proto/gateway/prefix.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 12 additions & 2 deletions proto/gateway/v1/prefix.proto
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,22 @@ service IPPrefixesService {
rpc Prefixes(PrefixesRequest) returns (PrefixesResponse) {}
}

message PrefixesRequest {}
message PrefixesRequest {
// Etag is the hash of the prefix set currently used by the requester.
// This value must not be calculated by the client. Instead it should
// be copied from the previous response. If there was no previous response
// set this field to empty string.
string etag = 1;
}

message PrefixesResponse {
// Prefixes are the prefixes that are reachable via the Gateway that
// responds.
// responds. If the etag in the request is the same as the etag in
// the response this field must be empty.
repeated Prefix prefixes = 1;
// Etag is the hash of the returned prefix set. The servers that don't
// support etags must return an empty string in this field.
string etag = 2;
}

message Prefix {
Expand Down

0 comments on commit 8a71cb5

Please sign in to comment.