Skip to content

Commit

Permalink
Fix protobuf issues with latest version
Browse files Browse the repository at this point in the history
  • Loading branch information
Tibo-lg committed Apr 16, 2020
1 parent 684a1e3 commit fcd653d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
4 changes: 3 additions & 1 deletion authentication.proto
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@ syntax = "proto3";

package authentication;

import "validator.proto";
import "github.com/mwitkow/go-proto-validators/validator.proto";
import "method_option.proto";

option go_package = "p2pderivatives-server/internal/authentication";

service Authentication {
rpc Login(LoginRequest) returns (LoginResponse) {
option (pbbase.option_base).ignore_token_verify = true;
Expand Down
2 changes: 2 additions & 0 deletions method_option.proto
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ package pbbase;

import "google/protobuf/descriptor.proto";

option go_package = "p2pderivatives-server/internal/common/grpc/pbbase";

extend google.protobuf.MethodOptions {
OptionBase option_base = 50001;
}
Expand Down
4 changes: 3 additions & 1 deletion user.proto
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@ syntax = "proto3";

package usercontroller;

import "validator.proto";
import "github.com/mwitkow/go-proto-validators/validator.proto";
import "method_option.proto";

option go_package = "p2pderivatives-server/internal/user/usercontroller";

service User {
rpc RegisterUser(UserRegisterRequest) returns (UserRegisterResponse) {
option (pbbase.option_base).ignore_token_verify = true;
Expand Down

0 comments on commit fcd653d

Please sign in to comment.