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
ConnectionPropertiesinstance.Declaration
Swift
public init(host: String, port: UInt16, secured: Bool, username: String?=nil, password: String?=nil)Parameters
hostHostname or IP address to the CouchDB server.
portPort number where CouchDB server is listening for incoming connections.
securedWhether or not to use a secured connection.
usernameCouchDB admin username. Defaults to
nil.passwordCouchDB admin password. Defaults to
nil.
-
String description for a
ConnectionProperties.Declaration
Swift
public var description: String
View on GitHub
ConnectionProperties Structure Reference