ServerType
public struct ServerType : RawRepresentable, Equatable, Decodable
The possible types for a server.
-
A standalone mongod server.
Declaration
Swift
public static let standalone: ServerDescription.ServerType
-
A router to a sharded cluster, i.e. a mongos server.
Declaration
Swift
public static let mongos: ServerDescription.ServerType
-
A replica set member which is not yet checked, but another member thinks it is the primary.
Declaration
Swift
public static let possiblePrimary: ServerDescription.ServerType
-
A replica set primary.
Declaration
Swift
public static let rsPrimary: ServerDescription.ServerType
-
A replica set secondary.
Declaration
Swift
public static let rsSecondary: ServerDescription.ServerType
-
A replica set arbiter.
Declaration
Swift
public static let rsArbiter: ServerDescription.ServerType
-
A replica set member that is none of the other types (a passive, for example).
Declaration
Swift
public static let rsOther: ServerDescription.ServerType
-
A replica set member that does not report a set name or a hosts list.
Declaration
Swift
public static let rsGhost: ServerDescription.ServerType
-
A server type that is not yet known.
Declaration
Swift
public static let unknown: ServerDescription.ServerType
-
A load balancer.
Declaration
Swift
public static let loadBalancer: ServerDescription.ServerType
-
Declaration
Swift
public var rawValue: String { get }
-
Declaration
Swift
public init?(rawValue: String)