mirror of
https://github.com/pomerium/pomerium.git
synced 2025-08-03 08:50:42 +02:00
grpc: rename internal/grpc to pkg/grpc (#1010)
* grpc: rename internal/grpc to pkg/grpc * don't ignore pkg dir * remove debug line
This commit is contained in:
parent
a98d39c5af
commit
091b71f12e
59 changed files with 247 additions and 927 deletions
23
pkg/grpc/user/user.proto
Normal file
23
pkg/grpc/user/user.proto
Normal file
|
@ -0,0 +1,23 @@
|
|||
syntax = "proto3";
|
||||
|
||||
package user;
|
||||
option go_package = "github.com/pomerium/pomerium/pkg/grpc/user";
|
||||
|
||||
import "google/protobuf/any.proto";
|
||||
import "google/protobuf/empty.proto";
|
||||
import "google/protobuf/timestamp.proto";
|
||||
|
||||
message User {
|
||||
string version = 1;
|
||||
string id = 2;
|
||||
string name = 3;
|
||||
string email = 4;
|
||||
google.protobuf.Timestamp created_at = 5;
|
||||
google.protobuf.Timestamp modified_at = 6;
|
||||
google.protobuf.Timestamp deleted_at = 7;
|
||||
map<string, google.protobuf.Any> claims = 8;
|
||||
}
|
||||
|
||||
message AddRequest { User user = 1; }
|
||||
|
||||
service UserService { rpc Add(AddRequest) returns (google.protobuf.Empty); }
|
Loading…
Add table
Add a link
Reference in a new issue