DefaultLegacySiteReputationClient
public final class DefaultLegacySiteReputationClient : LegacySudoSiteReputationClient
Default implementation of SiteReputationClient
.
-
Can be used to adjust the verbosity of logging output at runtime.
Declaration
Swift
public var logLevel: LogLevel
-
Instantiates a
DefaultSiteReputationClient
using the provided configuration object.Declaration
Swift
public convenience init(config: LegacySiteReputationClientConfig)
-
getSiteReputation(url:
Asynchronous) Declaration
Swift
public func getSiteReputation(url: String) async throws -> LegacySiteReputation
-
loadCachedData()
AsynchronousResponsible for populating the ruleset engine with cached lists if present.
Declaration
Swift
public func loadCachedData() async
-
update()
AsynchronousDeclaration
Swift
public func update() async throws
-
lastUpdatePerformedAt()
AsynchronousDeclaration
Swift
public func lastUpdatePerformedAt() async -> Date?
-
clearStorage()
AsynchronousDeclaration
Swift
public func clearStorage() async throws