Skip to content

Commit

Permalink
Merge pull request #19 from trimble-oss/increment_stat
Browse files Browse the repository at this point in the history
Increment and update max stat
  • Loading branch information
meghan-bailey authored Oct 25, 2024
2 parents da70d57 + 7eec06d commit 9dd4e2f
Show file tree
Hide file tree
Showing 3 changed files with 171 additions and 68 deletions.
136 changes: 80 additions & 56 deletions statsdk/statsdk.pb.go

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

9 changes: 6 additions & 3 deletions statsdk/statsdk.proto
Original file line number Diff line number Diff line change
Expand Up @@ -5,24 +5,27 @@ option go_package = "./statsdk";

service StatService {
rpc GetStats(GetStatRequest) returns (GetStatResponse);
rpc SetStats(SetStatRequest) returns (SetStatResponse);
rpc SetStats(UpdateStatRequest) returns (UpdateStatResponse);
rpc IncrementStats(UpdateStatRequest) returns (UpdateStatResponse);
rpc UpdateMaxStats(UpdateStatRequest) returns (UpdateStatResponse);
}

message GetStatRequest {
string key = 1;
string token = 2;
}

message SetStatRequest {
message UpdateStatRequest {
string key = 1;
string value = 2;
string token = 3;
string datatype = 4;
}

message GetStatResponse {
string results = 1;
}

message SetStatResponse {
message UpdateStatResponse {
bool success = 1;
}
Loading

0 comments on commit 9dd4e2f

Please sign in to comment.