TopologyType
public struct TopologyType : RawRepresentable, Equatable, CustomStringConvertible, Decodable
The possible types for a topology.
-
A single mongod server.
Declaration
Swift
public static let single: TopologyDescription.TopologyType
-
A replica set with no primary.
Declaration
Swift
public static let replicaSetNoPrimary: TopologyDescription.TopologyType
-
A replica set with a primary.
Declaration
Swift
public static let replicaSetWithPrimary: TopologyDescription.TopologyType
-
Sharded topology.
Declaration
Swift
public static let sharded: TopologyDescription.TopologyType
-
A topology whose type is not yet known.
Declaration
Swift
public static let unknown: TopologyDescription.TopologyType
-
A topology with a load balancer in front.
Declaration
Swift
public static let loadBalanced: TopologyDescription.TopologyType
-
Declaration
Swift
public var rawValue: String { get }
-
Declaration
Swift
public init?(rawValue: String)
-
Declaration
Swift
public var description: String { get }