ConnectionProperties
public struct ConnectionProperties
The connection properties of a CouchDBClient
instance
-
Hostname or IP address to the CouchDB server
Declaration
Swift
public let host: String
-
Port number where CouchDB server is listening for incoming connections
Declaration
Swift
public let port: UInt16
-
Whether or not to use a secured connection
Declaration
Swift
public let secured: Bool
-
Initializes a
ConnectionProperties
instance.Declaration
Swift
public init(host: String, port: UInt16, secured: Bool, username: String?=nil, password: String?=nil)
Parameters
host
Hostname or IP address to the CouchDB server.
port
Port number where CouchDB server is listening for incoming connections.
secured
Whether or not to use a secured connection.
username
CouchDB admin username. Defaults to
nil
.password
CouchDB admin password. Defaults to
nil
.
-
String description for a
ConnectionProperties
.Declaration
Swift
public var description: String