debian-mirror-gitlab/debian/gems-compat/thrift-0.11.0.0/spec/gen-rb/extended/extended_service.rb
Sruthi Chandran 1730a38f1c Embed thrift
2019-03-14 13:35:24 +05:30

78 lines
1.4 KiB
Ruby

#
# Autogenerated by Thrift Compiler (0.11.0)
#
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
#
require 'thrift'
require 'base/base_service'
require 'extended/extended_service_types'
module Extended
module ExtendedService
class Client < ::Base::BaseService::Client
include ::Thrift::Client
def ping()
send_ping()
recv_ping()
end
def send_ping()
send_message('ping', Ping_args)
end
def recv_ping()
result = receive_message(Ping_result)
return
end
end
class Processor < ::Base::BaseService::Processor
include ::Thrift::Processor
def process_ping(seqid, iprot, oprot)
args = read_args(iprot, Ping_args)
result = Ping_result.new()
@handler.ping()
write_result(result, oprot, 'ping', seqid)
end
end
# HELPER FUNCTIONS AND STRUCTURES
class Ping_args
include ::Thrift::Struct, ::Thrift::Struct_Union
FIELDS = {
}
def struct_fields; FIELDS; end
def validate
end
::Thrift::Struct.generate_accessors self
end
class Ping_result
include ::Thrift::Struct, ::Thrift::Struct_Union
FIELDS = {
}
def struct_fields; FIELDS; end
def validate
end
::Thrift::Struct.generate_accessors self
end
end
end