Skip to content

Commit

Permalink
Add package name to proto file
Browse files Browse the repository at this point in the history
  • Loading branch information
pipe01 committed May 8, 2021
1 parent 6667b91 commit b2b09f9
Show file tree
Hide file tree
Showing 6 changed files with 293 additions and 179 deletions.
189 changes: 123 additions & 66 deletions internal/proto/hat.pb.go

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

8 changes: 5 additions & 3 deletions internal/proto/hat.proto
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
syntax = "proto3";
package hat;
option go_package = "github.com/MouseHatGames/hat/proto";

service Hat {
rpc Get(Path) returns (Data) {}
rpc GetBulk(BulkRequest) returns (BulkResponse) {}
rpc Set(SetRequest) returns (Empty) {}
rpc Delete(Path) returns (Empty) {}
rpc Set(SetRequest) returns (SetResponse) {}
rpc Delete(Path) returns (DeleteResponse) {}
}

message Data {
Expand All @@ -16,7 +17,8 @@ message Path {
repeated string parts = 1;
}

message Empty {}
message SetResponse {}
message DeleteResponse {}

message SetRequest {
Path path = 1;
Expand Down
Loading

0 comments on commit b2b09f9

Please sign in to comment.