Move health check to domain layer

This commit is contained in:
2020-11-05 14:44:59 +01:00
parent bf56314473
commit c39a20cf96
3 changed files with 16 additions and 4 deletions
@@ -0,0 +1,13 @@
package be.simplenotes.domain.usecases
import be.simplenotes.persistance.DbHealthCheck
import javax.inject.Singleton
interface HealthCheckService {
fun isOk(): Boolean
}
@Singleton
class HealthCheckServiceImpl(private val dbHealthCheck: DbHealthCheck): HealthCheckService {
override fun isOk() = dbHealthCheck.isOk()
}