Move health check to domain layer
This commit is contained in:
+13
@@ -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()
|
||||
}
|
||||
Reference in New Issue
Block a user