ProteusClientProvider

Functions

Link copied to clipboard
abstract suspend fun clearLocalFiles()
Link copied to clipboard
abstract suspend fun exportCryptoDB(exportPath: String): Either<CoreFailure, CryptoBackupMetadata>

Exports the cryptographic database to the specified path and returns the metadata required for backup restoration.

Link copied to clipboard
abstract suspend fun getOrCreate(): ProteusClient

Returns the ProteusClient or creates new one if doesn't exists.

Link copied to clipboard
abstract suspend fun getOrError(): Either<CoreFailure, ProteusClient>

Returns the ProteusClient, retrieves it from local files or returns a failure if local files doesn't exist.