Skip to content

Latest commit

 

History

History
65 lines (40 loc) · 950 Bytes

GRPCAddress.md

File metadata and controls

65 lines (40 loc) · 950 Bytes

GRPCAddress

A gRPC service address.

public struct GRPCAddress

Encapsulates together the host, the port and secure / non-secure properties for connecting to gRPC service endpoints.

Initializers

init(host:port:secure:)

Creates a new gRPC address.

public init(host: String, port: Int, secure: Bool)

Parameters

  • host: The host of the remote gRPC service.
  • port: The port of the remote gRPC service.
  • secure: Whether the connection to the service should use TLS.

init(addr:)

Creates a new gRPC address.

public init(addr: String) throws

Parameters

  • addr: The address of the remote gRPC service.

Properties

host

The host of the remote gRPC service.

let host: String

port

The port of the remote gRPC service.

let port: Int

secure

Whether the connection should use TLS.

let secure: Bool