Skip to content

Commit

Permalink
Make linter to be happy again
Browse files Browse the repository at this point in the history
  • Loading branch information
thomas-illiet committed Oct 18, 2024
1 parent 65a4e6a commit 1b6aeb7
Show file tree
Hide file tree
Showing 10 changed files with 509 additions and 482 deletions.
306 changes: 138 additions & 168 deletions activity/activity.pb.go

Large diffs are not rendered by default.

27 changes: 11 additions & 16 deletions activity/activity.proto
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
syntax = "proto3";

package terrapi.v1.activity;
package terrapi.activity.v1;

option go_package = "github.com/terrapi-solution/protocol/activity";

service ActivityService {
rpc Insert(InsertRequest) returns (InsertResponse) {}
rpc Retrieve(RetrieveRequest) returns (Activity) {}
rpc List(ListRequest) returns (Activities) {}
rpc Retrieve(RetrieveRequest) returns (RetrieveResponse) {}
rpc List(ListRequest) returns (ListResponse) {}
}

message RetrieveRequest {
Expand All @@ -22,30 +22,25 @@ message ListRequest {
int32 offset = 1;
}

message InsertRequest {
enum Pointer {
stdout = 0;
stderr = 1;
}
enum Pointer {
POINTER_STDOUT = 0;
POINTER_STDERR = 1;
}

message InsertRequest {
int32 deployment = 2;
Pointer pointer = 3;
string message = 4;
}

message Activity {
enum Pointer {
stdout = 0;
stderr = 1;
}

message RetrieveResponse {
int32 id = 1;
int32 deployment = 2;
Pointer pointer = 3;
string message = 4;
int32 timestamp = 5;
}

message Activities {
repeated Activity results = 1;
message ListResponse {
repeated RetrieveResponse results = 1;
}
46 changes: 32 additions & 14 deletions activity/activity_grpc.pb.go

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

Loading

0 comments on commit 1b6aeb7

Please sign in to comment.