Module: KRPC
- Defined in:
- lib/krpc.rb,
lib/krpc/doc.rb,
lib/krpc/gen.rb,
lib/krpc/error.rb,
lib/krpc/types.rb,
lib/krpc/client.rb,
lib/krpc/decoder.rb,
lib/krpc/encoder.rb,
lib/krpc/krpc.pb.rb,
lib/krpc/service.rb,
lib/krpc/version.rb,
lib/krpc/streaming.rb,
lib/krpc/connection.rb,
lib/krpc/repl_tools.rb,
lib/krpc/protobuf_utils.rb,
lib/krpc/protobuf_extensions.rb,
lib/krpc/procedure_name_parser.rb
Defined Under Namespace
Modules: Decoder, Doc, Encoder, Gen, PB, ProcedureNameParser, ProtobufExtensions, ProtobufUtils, REPLTools, Services, Streaming, Types, Version Classes: ArgumentError, ArgumentErrorSig, ArgumentsNumberErrorSig, Client, Connection, ConnectionError, Error, ProcedureNameParserError, RPCConnection, RPCError, StreamConnection, ValueError
Constant Summary collapse
- TypeStore =
Types::TypeStore
- VERSION =
([Version::MAJOR, Version::MINOR, Version::PATCH, Version::LABEL, Version::IS_STABLE ? nil : "next"].compact * '.').freeze
Class Method Summary collapse
-
.connect(*args, &block) ⇒ Object
Connect to a kRPC server, generate services API and return Client object.
Class Method Details
.connect(*args, &block) ⇒ Object
Connect to a kRPC server, generate services API and return Client object. If the block is given, then it’s called passing Client object and the connection to kRPC server is closed at the end of the block.
11 12 13 |
# File 'lib/krpc.rb', line 11 def connect(*args, &block) Client.new(*args).connect!(&block) end |