ReplicatorConfiguration
public struct ReplicatorConfiguration
Replicator configuration.
-
The local database to replicate with the target database.
Declaration
Swift
public let database: Database
-
The replication target to replicate with. The replication target can be either a URL to the remote database or a local databaes.
Declaration
Swift
public let target: Any
-
Replication type indicating the direction of the replication. The default value is .pushAndPull which is bidrectional.
Declaration
Swift
public var replicatorType: ReplicatorType
-
Should the replicator stay active indefinitely, and push/pull changed documents?. The default value is false.
Declaration
Swift
public var continuous: Bool
-
The conflict resolver for this replicator. The default value is nil, which means the default algorithm will be used, where the revision with more history wins.
Declaration
Swift
public var conflictResolver: ConflictResolver?
-
An Authenticator to authenticate with a remote server. Currently there are two types of the authenticators, BasicAuthenticator and SessionAuthenticator, supported.
Declaration
Swift
public var authenticator: Authenticator?
-
If this property is non-null, the server is required to have this exact SSL/TLS certificate, or the connection will fail.
Declaration
Swift
public var pinnedServerCertificate: SecCertificate?
-
Initialize a ReplicatorConfiguration with the given local database and remote database URL.
Declaration
Swift
public init(database: Database, targetURL: URL)