-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #70 from mercari/remove_unnecessary_name_checks
Remove unnecessary reference name checks
- Loading branch information
Showing
6 changed files
with
75 additions
and
245 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
syntax = "proto3"; | ||
|
||
package org.federation; | ||
|
||
import "federation.proto"; | ||
import "nested_post.proto"; | ||
|
||
option go_package = "example/federation;federation"; | ||
|
||
service FederationService { | ||
option (grpc.federation.service) = { | ||
dependencies: [ | ||
{ name: "post_service", service: "org.post.PostService" } | ||
] | ||
}; | ||
rpc GetPost(GetPostRequest) returns (GetPostResponse) {}; | ||
} | ||
|
||
message GetPostRequest { | ||
string id = 1; | ||
} | ||
|
||
message GetPostResponse { | ||
option (grpc.federation.message) = { | ||
def { | ||
name: "post" | ||
message { | ||
name: "Post" | ||
args { name: "id", by: "$.id" } | ||
} | ||
} | ||
}; | ||
Post post = 1 [(grpc.federation.field).by = "post"]; | ||
} | ||
|
||
message Post { | ||
option (grpc.federation.message) = { | ||
def { | ||
name: "res" | ||
call { | ||
method: "org.post.PostService/GetPost" | ||
request { field: "id", by: "$.id" } | ||
} | ||
} | ||
def { name: "post", by: "res.post", autobind: true } | ||
}; | ||
string id = 1; | ||
PostType type = 2 [(grpc.federation.field).by = "org.federation.PostType.FICTION"]; | ||
} | ||
|
||
enum PostType { | ||
UNKNOWN = 0; | ||
FICTION = 1; | ||
} |
Oops, something went wrong.