Skip to content

Commit

Permalink
Cache Upsert and Delete handlers in Aperture Agent
Browse files Browse the repository at this point in the history
  • Loading branch information
tanveergill committed Nov 15, 2023
1 parent eefe9e5 commit 9c52b98
Show file tree
Hide file tree
Showing 19 changed files with 1,046 additions and 545 deletions.
25 changes: 19 additions & 6 deletions api/aperture/flowcontrol/check/v1/check.proto
Original file line number Diff line number Diff line change
Expand Up @@ -71,14 +71,21 @@ message CheckResponse {
CachedValue cached_value = 15;
}

enum LookupResult {
Hit = 0;
Miss = 1;
enum CacheLookupResult {
HIT = 0;
MISS = 1;
}

enum CacheResponseCode {
SUCCESS = 0;
ERROR = 1;
}

message CachedValue {
bytes value = 1;
LookupResult lookup_result = 2;
CacheLookupResult lookup_result = 2;
CacheResponseCode response_code = 3;
string message = 4;
}

message CacheUpsertRequest {
Expand All @@ -88,14 +95,20 @@ message CacheUpsertRequest {
google.protobuf.Duration ttl = 4;
}

message CacheUpsertResponse {}
message CacheUpsertResponse {
CacheResponseCode code = 1;
string message = 2;
}

message CacheDeleteRequest {
string control_point = 1;
string key = 2;
}

message CacheDeleteResponse {}
message CacheDeleteResponse {
CacheResponseCode code = 1;
string message = 2;
}

// ClassifierInfo describes details for each ClassifierInfo.
message ClassifierInfo {
Expand Down
Loading

0 comments on commit 9c52b98

Please sign in to comment.