diff options
| author | mo khan <mo@mokhan.ca> | 2025-03-06 12:27:03 -0700 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2025-03-06 12:27:03 -0700 |
| commit | 68aaecae08062f6a200bc7167e8666c14165630c (patch) | |
| tree | 830f1ddb5ce40504b33976ec598a91b70d10d083 /lib/authx/rpc/ability_pb.rb | |
| parent | 534c909963f4d9ad4d4a8ec76d882cdf963f1811 (diff) | |
feat: remove standalone gRPC server
Diffstat (limited to 'lib/authx/rpc/ability_pb.rb')
| -rw-r--r-- | lib/authx/rpc/ability_pb.rb | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/lib/authx/rpc/ability_pb.rb b/lib/authx/rpc/ability_pb.rb index b360db28..ee71dc57 100644 --- a/lib/authx/rpc/ability_pb.rb +++ b/lib/authx/rpc/ability_pb.rb @@ -1,14 +1,20 @@ -# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: ability.proto require 'google/protobuf' - -descriptor_data = "\n\rability.proto\x12\tauthx.rpc\"E\n\x0c\x41llowRequest\x12\x0f\n\x07subject\x18\x01 \x01(\t\x12\x12\n\npermission\x18\x02 \x01(\t\x12\x10\n\x08resource\x18\x03 \x01(\t\"\x1c\n\nAllowReply\x12\x0e\n\x06result\x18\x01 \x01(\x08\x32\x46\n\x07\x41\x62ility\x12;\n\x07\x41llowed\x12\x17.authx.rpc.AllowRequest\x1a\x15.authx.rpc.AllowReply\"\x00\x62\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool -pool.add_serialized_file(descriptor_data) +Google::Protobuf::DescriptorPool.generated_pool.build do + add_file("ability.proto", :syntax => :proto3) do + add_message "authx.rpc.AllowRequest" do + optional :subject, :string, 1 + optional :permission, :string, 2 + optional :resource, :string, 3 + end + add_message "authx.rpc.AllowReply" do + optional :result, :bool, 1 + end + end +end module Authx module Rpc |
