class Minknow::ConnectionConfig

Defined in:

minknow.cr

Constant Summary

DEFAULT_LINUX_CA_PATHS = ["/data/rpc-certs/minknow/ca.crt", "/var/lib/minknow/data/rpc-certs/minknow/ca.crt"]
DEFAULT_MACOS_CA_PATHS = ["/Library/MinKNOW/data/rpc-certs/minknow/ca.crt"]
DEFAULT_WINDOWS_CA_PATHS = ["C:/data/rpc-certs/minknow/ca.crt"]

Constructors

Instance Method Summary

Constructor Detail

def self.new(host : String = "127.0.0.1", port : Int32 = 9501, tls : Bool = true, metadata : Hash(String, String) | Nil = nil, ca_certificate_path : String | Nil = nil, client_certificate_chain_path : String | Nil = ENV["MINKNOW_API_CLIENT_CERTIFICATE_CHAIN"]?, client_private_key_path : String | Nil = ENV["MINKNOW_API_CLIENT_KEY"]?, authentication_token : String | Nil = ENV["MINKNOW_AUTH_TOKEN"]?, protocol_token : String | Nil = ENV["PROTOCOL_TOKEN"]?, auto_local_auth : Bool | Nil = nil, local_auth_lookup_port : Int32 | Nil = nil) #

[View source]

Instance Method Detail

def address : String #

[View source]
def authentication_token : String | Nil #

[View source]
def auto_local_auth : Bool | Nil #

[View source]
def ca_certificate_path : String | Nil #

[View source]
def channel : GRPC::Channel #

[View source]
def client_certificate_chain_path : String | Nil #

[View source]
def client_certificate_configured? : Bool #

[View source]
def client_context : GRPC::ClientContext #

[View source]
def client_private_key_path : String | Nil #

[View source]
def effective_metadata : Hash(String, String) #

[View source]
def host : String #

[View source]
def local_auth_enabled? : Bool #

[View source]
def local_auth_lookup_config : self #

[View source]
def local_auth_lookup_port : Int32 | Nil #

[View source]
def local_auth_lookup_port! : Int32 #

[View source]
def localhost? : Bool #

[View source]
def metadata : Hash(String, String) #

[View source]
def port : Int32 #

[View source]
def protocol_token : String | Nil #

[View source]
def tls? : Bool #

[View source]
def tls_context : OpenSSL::SSL::Context::Client | Nil #

[View source]
def with_port(port : Int32) : self #

[View source]