lib/event_store_client/adapters/grpc/connection.rb
def call(stub_klass, options: {})
        credentials =
          options[:credentials] ||
          Base64.encode64("#{config.eventstore_user}:#{config.eventstore_password}")
        stub_klass.new(
          "#{config.eventstore_url.host}:#{config.eventstore_url.port}",
          channel_credentials,
          channel_args: { 'authorization' => "Basic #{credentials.delete("\n")}" }
        )
      end
# Initializes the proper stub with the necessary credentials
# to create working gRPC connection - Refer to generated grpc files
# @return [Stub] Instance of a given `Stub` klass
#
Initializes the proper stub with the necessary credentials
to create working gRPC connection - Refer to generated grpc files
Initializes the proper stub with the necessary credentials to create working gRPC connection - Refer to generated grpc files
def call(stub_klass, options: {})
        credentials =
          options[:credentials] ||
          Base64.encode64("#{config.eventstore_user}:#{config.eventstore_password}")
        stub_klass.new(
          "#{config.eventstore_url.host}:#{config.eventstore_url.port}",
          channel_credentials,
          channel_args: { 'authorization' => "Basic #{credentials.delete("\n")}" }
        )
      end
def call ( stub_klass , options : { } ) credentials = options [ :credentials ] || Base64 . encode64 ( "#{config.eventstore_user}:#{config.eventstore_password}" ) stub_klass . new ( "#{config.eventstore_url.host}:#{config.eventstore_url.port}" , channel_credentials , channel_args : { 'authorization' => "Basic #{credentials.delete("\n")}" } ) end
Initializes the proper stub with the necessary credentials
to create working gRPC connection - Refer to generated grpc files
Initializes the proper stub with the necessary credentials to create working gRPC connection - Refer to generated grpc files
Instance of a given `Stub` klass
Instance of a given ` Stub ` klass
Stub
stub_klass
options