diff options
| author | mo khan <mo@mokhan.ca> | 2025-03-06 11:24:42 -0700 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2025-03-06 11:24:42 -0700 |
| commit | 27e5b886ad9e9e4c0d831162dbae9d9025fb2903 (patch) | |
| tree | 32c00563a2d93d82dbeefece715a2cbaeba6d41b /protos/ability.proto | |
| parent | 0fb8fe928b9ca6f907d532789038f8b8fdcca42c (diff) | |
refactor: use protobuf3 and define twirp service
Diffstat (limited to 'protos/ability.proto')
| -rw-r--r-- | protos/ability.proto | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/protos/ability.proto b/protos/ability.proto index 656f4f9..5f15526 100644 --- a/protos/ability.proto +++ b/protos/ability.proto @@ -1,13 +1,17 @@ +syntax = "proto3"; + +package authx; + service Ability { rpc Allowed (AllowRequest) returns (AllowReply) {} } message AllowRequest { - required string subject = 1; - required string permission = 2; - required string resource = 3; + string subject = 1; + string permission = 2; + string resource = 3; } message AllowReply { - required bool result = 1; + bool result = 1; } |
