Class: EventStoreClient::GRPC::Cluster::SecureConnection
- Inherits:
 - 
      EventStoreClient::GRPC::Connection
      
        
- Object
 - EventStoreClient::GRPC::Connection
 - EventStoreClient::GRPC::Cluster::SecureConnection
 
 
- Defined in:
 - lib/event_store_client/adapters/grpc/cluster/secure_connection.rb
 
Constant Summary collapse
- CertificateLookupError =
 Class.new(StandardError)
Instance Method Summary collapse
- 
  
    
      #call(stub_class)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
Instance of the given stub_class class.
 
Methods inherited from EventStoreClient::GRPC::Connection
Methods included from Extensions::OptionsExtension
included, #initialize, #options_hash
Constructor Details
This class inherits a constructor from EventStoreClient::GRPC::Connection
Instance Method Details
#call(stub_class) ⇒ Object
Returns instance of the given stub_class class.
      11 12 13 14 15 16 17 18 19  | 
    
      # File 'lib/event_store_client/adapters/grpc/cluster/secure_connection.rb', line 11 def call(stub_class) config.logger&.debug("Using secure connection with credentials #{username}:#{password}.") stub_class.new( "#{host}:#{port}", channel_credentials, channel_args: config.channel_args, timeout: (timeout / 1000.0 if timeout) ) end  |