struct GRPC::Endpoint

Overview

Endpoint describes where a client channel connects. It encapsulates host/port/TLS derived from an address string.

Defined in:

grpc/endpoint.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(host : String, port : Int32, tls : Bool = false) #

[View source]
def self.parse(address : String) : Endpoint #

Parse common endpoint forms:

  • host:port
  • http://host:port
  • https://host:port
  • host (defaults: 50051 for plain, 443 for TLS)

[View source]

Instance Method Detail

def host : String #

[View source]
def port : Int32 #

[View source]
def tls? : Bool #

[View source]
def to_address : String #

[View source]