HostIdentifier
public struct HostIdentifier : Equatable, CustomStringConvertible
A struct representing a host identifier, consisting of a host and an optional port. In standard connection strings, this describes the address of a mongod or mongos to connect to. In mongodb+srv connection strings, this describes a DNS name to be queried for SRV and TXT records.
-
The hostname or IP address.
Declaration
Swift
public let host: String
-
The port number.
Declaration
Swift
public let port: UInt16?
-
Declaration
Swift
public var description: String { get }