Sha256: dc9fad44f41565c53a58eedc1634fab9090e6b944e6188913bc208e40b9130c2

Contents?: true

Size: 1.36 KB

Versions: 11

Compression:

Stored size: 1.36 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 '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

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
upfluence-thrift-1.0.12 spec/gen-rb/extended/extended_service.rb
upfluence-thrift-1.0.11 spec/gen-rb/extended/extended_service.rb
upfluence-thrift-1.0.10 spec/gen-rb/extended/extended_service.rb
upfluence-thrift-1.0.9 spec/gen-rb/extended/extended_service.rb
upfluence-thrift-1.0.8 spec/gen-rb/extended/extended_service.rb
upfluence-thrift-1.0.7 spec/gen-rb/extended/extended_service.rb
upfluence-thrift-1.0.6 spec/gen-rb/extended/extended_service.rb
upfluence-thrift-1.0.5 spec/gen-rb/extended/extended_service.rb
upfluence-thrift-1.0.4 spec/gen-rb/extended/extended_service.rb
upfluence-thrift-1.0.3 spec/gen-rb/extended/extended_service.rb
upfluence-thrift-1.0.1 spec/gen-rb/extended/extended_service.rb