Sha256: 342481868ff31ca073aa96386e7c1f5939741cc5abc8b566533484d76be73417
Contents?: true
Size: 1.63 KB
Versions: 11
Compression:
Stored size: 1.63 KB
Contents
# # Autogenerated by Thrift Compiler (1.0.0-upfluence) # # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING # require 'thrift' require 'srv' require 'debug_proto_test_types' module Inherited class Client < ::Srv::Client include ::Thrift::Client def identity(arg) send_identity(arg) return recv_identity() end def send_identity(arg) send_message('identity', Identity_args, :arg => arg) end def recv_identity() result = receive_message(Identity_result) return result.success unless result.success.nil? raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'identity failed: unknown result') end end class Processor < ::Srv::Processor include ::Thrift::Processor def process_identity(seqid, iprot, oprot) args = read_args(iprot, Identity_args) result = Identity_result.new() result.success = @handler.identity(args.arg) write_result(result, oprot, 'identity', seqid) end end # HELPER FUNCTIONS AND STRUCTURES class Identity_args include ::Thrift::Struct, ::Thrift::Struct_Union ARG = 1 FIELDS = { ARG => {:type => ::Thrift::Types::I32, :name => 'arg'} } def struct_fields; FIELDS; end def validate end ::Thrift::Struct.generate_accessors self end class Identity_result include ::Thrift::Struct, ::Thrift::Struct_Union SUCCESS = 0 FIELDS = { SUCCESS => {:type => ::Thrift::Types::I32, :name => 'success'} } def struct_fields; FIELDS; end def validate end ::Thrift::Struct.generate_accessors self end end
Version data entries
11 entries across 11 versions & 1 rubygems