View test reports →

Coverage Summary for Class: HttpLogManager (dev.skymansandy.wiretap.domain.orchestrator)

Class Method, % Branch, % Line, % Instruction, %
HttpLogManager 0% (0/1) 0% (0/1) 0% (0/10)
HttpLogManager$DefaultImpls
Total 0% (0/1) 0% (0/1) 0% (0/10)


 /*
  * Copyright (c) 2026 skymansandy. All rights reserved.
  */
 
 package dev.skymansandy.wiretap.domain.orchestrator
 
 import androidx.paging.PagingData
 import dev.skymansandy.wiretap.domain.model.HttpLog
 import dev.skymansandy.wiretap.domain.model.HttpLogFilter
 import kotlinx.coroutines.flow.Flow
 
 interface HttpLogManager {
 
     fun flowHttpLogs(): Flow<List<HttpLog>>
 
     fun flowDistinctHosts(): Flow<List<String>>
 
     fun flowPagedHttpLogsForSearchQuery(
         query: String,
         filter: HttpLogFilter = HttpLogFilter(),
     ): Flow<PagingData<HttpLog>>
 
     fun flowHttpLogById(id: Long): Flow<HttpLog?>
 
     suspend fun logHttp(entry: HttpLog)
 
     suspend fun logHttpAndGetId(entry: HttpLog): Long
 
     suspend fun updateHttp(entry: HttpLog)
 
     suspend fun getHttpLogById(id: Long): HttpLog?
 
     suspend fun deleteHttpLog(id: Long)
 
     suspend fun clearHttpLogs()
 
     suspend fun purgeHttpLogsOlderThan(cutoffMs: Long)
 
     suspend fun markHttpCancelledIfInProgress(id: Long)
 }