Package-level declarations
Types
Link copied to clipboard
interface CoreFailure
Link copied to clipboard
object CoreLogger
Link copied to clipboard
actual class CoreLogic(rootPath: String, kaliumConfigs: KaliumConfigs, userAgent: String, useInMemoryStorage: Boolean = false) : CoreLogicCommon
Link copied to clipboard
abstract class CoreLogicCommon(rootPath: String, userAgent: String, kaliumConfigs: KaliumConfigs, idMapper: IdMapper = MapperProvider.idMapper())
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
class GlobalKaliumScope(userAgent: String, globalDatabase: <Error class: unknown class>, globalPreferences: <Error class: unknown class>, kaliumConfigs: KaliumConfigs, userSessionScopeProvider: <Error class: unknown class><UserSessionScopeProvider>, authenticationScopeProvider: AuthenticationScopeProvider, val logoutCallbackManager: LogoutCallbackManager)
Scope that exposes all operations that are user and backend agnostic, like
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Functions
Link copied to clipboard
internal fun <Error class: unknown class>.logStructuredJson(level: <Error class: unknown class>, leadingMessage: String, jsonStringKeyValues: Map<String, Any?>)
Log a structured JSON message, in the following format:
Link copied to clipboard
Link copied to clipboard
internal inline fun <T : Any> wrapApiRequest(networkCall: () -> <Error class: unknown class><T>): Either<NetworkFailure, T>
Link copied to clipboard
Link copied to clipboard
internal inline fun <T : Any> wrapFlowStorageRequest(storageRequest: () -> <Error class: unknown class><T?>): <Error class: unknown class><Either<StorageFailure, T>>
Link copied to clipboard
Link copied to clipboard
internal inline fun <T : Any> wrapNullableFlowStorageRequest(storageRequest: () -> <Error class: unknown class><T?>): <Error class: unknown class><Either<StorageFailure, T?>>
Link copied to clipboard
internal inline fun <T : Any> wrapProteusRequest(proteusRequest: () -> T): Either<ProteusFailure, T>
Link copied to clipboard
internal inline fun <T : Any> wrapStorageNullableRequest(storageRequest: () -> T?): Either<StorageFailure, T?>
Link copied to clipboard
internal inline fun <T : Any> wrapStorageRequest(storageRequest: () -> T?): Either<StorageFailure, T>
internal inline fun <T : Any> wrapStorageRequest(noinline errorHandler: (<Error class: unknown class>) -> Either<StorageFailure, T>, storageRequest: () -> T?): Either<StorageFailure, T>
Wrap a storage request with a custom error handler that let's delegate the error handling to the caller.
Link copied to clipboard
internal fun <T : Any> <Error class: unknown class><T?>.wrapStorageRequest(): <Error class: unknown class><Either<StorageFailure, T>>