Files
Timmy Welch 7bc53e8408 Add CHDB compaction
Compact the bolt database on shutdown to reclaim the space freed
by deleted entries
2026-11-05 16:29:43 -08:00

17 lines
356 B
Go

package ch
import "gitea.narnian.us/lordwelch/comic-hasher/log"
type CHDB interface {
PathHashed(path string) bool
PathDownloaded(path string) bool
AddPath(path string)
// CheckURL return true if the url is known to be a bad url
CheckURL(url string) bool
AddURL(url string)
Close() error
Compact() error
}
var CHDBLogger = log.NewLogger("chdb")